.i3/volume_ctrl

Fri, 13 Jun 2014 10:34:30 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 13 Jun 2014 10:34:30 -0400
branch
mhoward-lt
changeset 48
692d2b9c7958
parent 38
89149f81e6d7
permissions
-rwxr-xr-x

add private bin/ to path, run urxvtd and xcompmgr always if available

#!/usr/bin/env ruby

cmd = ARGV.shift

if cmd == 'up'
  system 'amixer -q set Master 5%+ unmute'
elsif cmd == 'down'
  system 'amixer -q set Master 5%- unmute'
elsif cmd == 'mute'
  system 'amixer -q set Master toggle'
end

# nudge i3stats for an update
system 'killall -USR1 i3status'

mercurial