Browse Source

Sound finally works

master
Taylor Bockman 9 years ago
parent
commit
102b4787a9
  1. 8
      dotfiles/awesome/rc.lua
  2. 4
      dotfiles/zshrc

8
dotfiles/awesome/rc.lua

@ -514,22 +514,22 @@ globalkeys = awful.util.table.join(
-- ALSA volume control -- ALSA volume control
awful.key({ altkey }, "Up", awful.key({ altkey }, "Up",
function () function ()
os.execute(string.format("amixer set %s 1%%+", volumewidget.channel)) os.execute(string.format("amixer -D pulse set %s 1%%+", volumewidget.channel))
volumewidget.update() volumewidget.update()
end), end),
awful.key({ altkey }, "Down", awful.key({ altkey }, "Down",
function () function ()
os.execute(string.format("amixer set %s 1%%-", volumewidget.channel)) os.execute(string.format("amixer -D pulse set %s 1%%-", volumewidget.channel))
volumewidget.update() volumewidget.update()
end), end),
awful.key({ altkey }, "m", awful.key({ altkey }, "m",
function () function ()
os.execute(string.format("amixer set %s toggle", volumewidget.channel)) os.execute(string.format("amixer -D pulse set %s toggle", volumewidget.channel))
volumewidget.update() volumewidget.update()
end), end),
awful.key({ altkey, "Control" }, "m", awful.key({ altkey, "Control" }, "m",
function () function ()
os.execute(string.format("amixer set %s 100%%", volumewidget.channel)) os.execute(string.format("amixer -D pulse set %s 100%%", volumewidget.channel))
volumewidget.update() volumewidget.update()
end), end),

4
dotfiles/zshrc

@ -37,6 +37,10 @@ export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
PATH=$PATH:~/.cabal/bin PATH=$PATH:~/.cabal/bin
PATH=$PATH:.cabal-sandbox/bin PATH=$PATH:.cabal-sandbox/bin
# Git Town
PATH=$PATH:~/git-town/src
MANPATH=$MANPATH:~/git-town/man
precmd(){ precmd(){
vcs_info vcs_info
} }

Loading…
Cancel
Save