Commit Graph

37 Commits

Author SHA1 Message Date
Arvedui
787e8d2623 fixed build failure 2015-02-22 15:03:32 +01:00
Arvedui
68813026e6 add functionalaty for deactivate truncation in mpd module 2015-02-22 14:54:01 +01:00
Arvedui
d0692798b7 fix a documentation issue 2015-02-22 14:29:48 +01:00
Arvedui
2bcef67c83 some changes to prevent recomputation of the output string if no truncation is done 2015-02-22 14:17:03 +01:00
Arvedui
87b57ce838 some clarification in docs about the truncation order 2015-02-22 14:14:58 +01:00
Arvedui
cceb032576 rename text_len to max_field_len, add max_len parameter and some logic to truncate certain fields if output len exceeds max_len 2015-02-22 14:10:36 +01:00
Matthieu Coudron
d31cc380ef Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 .
This commit removes and replaces all the old methods 'on_*' by settings
with the same name. The old methods were renamed into more explicit names that can be used for the callbacks like "next_song","mute" etc...
For instance, you can test with:
status.register("clock",
	format=[
	    ("Format 0",'Europe/London'),
	    ("%a %-d Format 1",'Europe/Dublin'),
	    "%a %-d %b %X format 2",
	    ("%a %-d %b %X format 3", 'Europe/Paris'),
	],
	on_leftclick= ["urxvtc"] , # launch urxvtc on left click
	on_rightclick= ["scroll_format", 2] , # update format by steps of 2
	log_level=logging.DEBUG,
	)

This way much code could be removed from other modules, though I did it only for the clock module here.
2014-12-20 15:30:41 +01:00
Arvedui
38128eab31 fixed pep8 issue 2014-11-02 17:04:52 +01:00
Arvedui
04eb15c330 added options text_len and truncate_fields to mpd module for taming insanly long artist, album and song names 2014-10-30 12:14:18 +01:00
enkore
29a0278bc5 PEP 8 (I'm bored): mpd 2014-10-14 16:37:48 +02:00
enkore
344ad4647f Moved all docs to sphinx. Nothing changes for module authors. 2014-10-12 01:32:29 +02:00
Matthieu Coudron
f5520e220b Mousewheel up will play next song, down will play previous song 2014-09-05 00:07:03 +02:00
enkore
566709290e Don't catch exceptions by wildcard randomly
Related #102 #100
2014-08-28 16:12:29 +02:00
bparmentier
1718ae95a4 Play song on left click even if stopped 2014-08-26 11:30:17 +02:00
Arvedui
e2bd1980ad fixed false "error connecting MPD" when no song is seleced right now" 2014-08-16 16:08:37 +02:00
enkore
92519b8d3e Remove some cruft in mpd module 2014-08-04 01:45:02 +02:00
enkore
bc1683beb5 Update readme #93 2014-08-01 00:03:02 +02:00
Chris Wood
e15f57f2de Add filename tag to mpd module 2014-07-31 17:26:18 -04:00
Naglis Jonaitis
1a762b9afe [mpd] Add color setting 2014-07-18 00:08:03 +03:00
Goran Mekić
cf369f8e53 Next song on right click in MPD. 2014-06-01 11:51:01 +02:00
enkore
b45261164a mpd: remove unused format_time 2014-05-06 14:26:28 +02:00
enkore
f06a76ad52 PEP8 2014-04-30 14:51:41 +02:00
siikamiika
56822a3cec Clean unused code and fix clicks 2014-03-08 17:49:45 +02:00
siikamiika
e525d4fa28 Better put fdict construction inside try 2014-03-08 05:53:52 +02:00
siikamiika
380efde089 Handle MPD connection errors 2014-03-08 04:59:08 +02:00
siikamiika
850501430d Don't create new socket for every MPD query 2014-03-08 03:05:01 +02:00
enkore
aa09079903 Add detached_down option (#26)
And some other stuff I obviously forget to commit last time.
Oh, that's just the RST port... okay :)
2014-01-16 13:39:17 +01:00
enkore
78c01dd3e5 PEP8 2013-10-01 15:22:09 +02:00
enkore
69b702d2f1 3.24: Introduce time wrapper, remove battery remaining_* formatter(!!!) 2013-08-04 23:40:19 +02:00
enkore
c841736eac MPD: use formatp, remove now completly useless format_sparse 2013-08-03 14:39:27 +02:00
enkore
e848fc4a6f Improve documentation 2013-07-31 21:39:59 +02:00
enkore
5304629cf1 3.20: Extend MPD module
-Removed playtime_* formatters (pretty much useless)
-Add bitrate formatter
-Add volume formatter
-Add song_elapsed formatter
-Add song_length formatter
-Add format_sparse option (intended for streams/internet radio or untagged media)
2013-07-31 21:07:45 +02:00
enkore
70fbbe3944 Fix for mpd if playlist is consumed 2013-07-31 00:19:32 +02:00
enkore
11506f60f8 3.17: MPD: host parameter 2013-07-18 22:59:06 +02:00
enkore
5ee67aaefd 3.16: MPD: stop state bugfix, mute/unmute on rightclick
Yes, I currently just increase the minor version number on every fix
2013-07-18 22:36:52 +02:00
enkore
eb44638b87 3.15: mpd, add status and leftclick for play/pause 2013-07-09 22:31:30 +02:00
enkore
35b9ed6468 Forgot the actual MPD module 2013-07-01 20:45:25 +02:00