.i3/volume_ctrl

branch
mhoward-lt
changeset 38
89149f81e6d7
equal deleted inserted replaced
37:8518a581c36d 38:89149f81e6d7
1 #!/usr/bin/env ruby
2
3 cmd = ARGV.shift
4
5 if cmd == 'up'
6 system 'amixer -q set Master 5%+ unmute'
7 elsif cmd == 'down'
8 system 'amixer -q set Master 5%- unmute'
9 elsif cmd == 'mute'
10 system 'amixer -q set Master toggle'
11 end
12
13 # nudge i3stats for an update
14 system 'killall -USR1 i3status'

mercurial