Commit Graph

19 Commits

Author SHA1 Message Date
enkore
fcc3bf67d4 Update alsa.py
cf #300
2016-01-28 16:57:57 +01:00
enkore
612b8b07eb Update modules to a7583a9
Not updated for various reasons:
clock,
dpms,
gpu_temp,
load,
mail,
mem_bar,
modsde,
net_speed,
pianobar,
pulseaudio,
regex [no named formatters],
runwatch,
shell,
solaar,
temp,
text,
updates,
weather,
whosonlocation,
xkblayout,
zabbix


This might break something: I can't test all these modules. If it does,
file a bug / open a PR / send me a note.
2016-01-27 19:53:33 +01:00
Fabian Tobias Rajter
1376f5f6be Changed cosmetical things Travis CI was complaining about. 2015-12-05 18:31:45 +01:00
Fabian Tobias Rajter
2abaab1769 Implemented optional volume display/setting as in AlsaMixer. 2015-12-05 18:12:44 +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
Matthieu Coudron
98e46ac3d6 Updated alsa & clock modules with new mechanism 2014-12-19 22:04:49 +01:00
enkore
eeeb629e98 Nicer doc markup 2014-10-12 11:35:44 +02:00
Matthieu Coudron
f748f8a4d8 this commit fixes 2 problems:
-there was a trailing comma in the clock module that would interact badly with i3pystatus & i3bar; i3pystatus seeing the comma would generate the json ** full_text : ["13 september"] ** and then i3bar would only display the last module (one may have to check for i3bar robustness). resulted in having only the clock module displayed
-the 2nd problem was with the alsa module when setting the volume to a number <0 or > 100 then the pyalsa bindings would generate the following error in .xsession-errors

    target_module.on_click(command["button"])↲
  File "/home/teto/i3pystatus/i3pystatus/core/modules.py", line 31, in
  on_click↲
      self.on_upscroll()↲
        File "/home/teto/i3pystatus/i3pystatus/alsa.py", line 95, in
	on_upscroll↲
	    self.alsamixer.setvolume( vol + self.increment)↲
	    alsaaudio.ALSAAudioError: Volume must be between 0 and 100↲
2014-09-13 23:37:16 +02:00
Matthieu Coudron
7d2a7c2828 Right/left click will toggle mute status of alsa 2014-09-05 00:37:02 +02:00
Matthieu Coudron
000bdc6978 i3 next branch send click events on mouse wheel up/down. This patch allows to change the alsa volume with the mousewheel when hovering the alsa indicator 2014-08-30 00:13:57 +02:00
Tom X. Tobin
bd66997f2f Support optional "format_muted" setting for audio modules
The alsa and pulseaudio modules now support an optional "format_muted"
setting. If provided, it will be used instead of "format" when the audio
is muted.
2014-06-11 18:58:41 -04:00
enkore
f06a76ad52 PEP8 2014-04-30 14:51:41 +02:00
Łukasz Jędrzejewski
f2dcd6214e alsa: do not ignore unmuted setting 2014-03-05 14:33:37 +01:00
enkore
cdbb2f3e36 While we're at it, some other PEP8 stuff.
[obama] Except too long lines, because big screens.
2013-10-09 09:58:38 +02:00
enkore
78c01dd3e5 PEP8 2013-10-01 15:22:09 +02:00
enkore
e848fc4a6f Improve documentation 2013-07-31 21:39:59 +02:00
enkore
dccbc63826 3.13: MPD module, ALSA fix 2013-07-01 20:41:03 +02:00
enkore
197f1541b3 Fixed alsa not displaying volume changes correctly 2013-02-25 19:36:41 +01:00
enkore
446eda7218 alsa module, requires pyalsaaudio (from PyPI) 2013-02-25 18:36:17 +01:00