+-- xmms2 & sound
+globalkeys = awful.util.table.join(globalkeys,
+ awful.key({ cmdmodkey }, "Prior", function () awful.util.spawn("amixer set Master 2+") end),
+ awful.key({ cmdmodkey }, "Next", function () awful.util.spawn("amixer set Master 2-") end),
+ awful.key({ cmdmodkey }, "Up", function () awful.util.spawn("amixer set PCM 2+") end),
+ awful.key({ cmdmodkey }, "Down", function () awful.util.spawn("amixer set PCM 2-") end),
+ awful.key({ cmdmodkey }, "Home", function () awful.util.spawn("amixer set Mic toggle") end),
+ awful.key({ cmdmodkey }, "End", function () awful.util.spawn("amixer set Master toggle") end),
+ awful.key({ cmdmodkey }, "Left", function () awful.util.spawn("xmms2 prev") end),
+ awful.key({ cmdmodkey }, "Right", function () awful.util.spawn("xmms2 next") end),
+ awful.key({ cmdmodkey }, "space", function () awful.util.spawn("xmms2 toggleplay") end),
+ awful.key({ cmdmodkey }, "backslash", function () awful.util.spawn("xmms2 current | head -1 | xmessage -nearmouse -timeout 5 -file -") end),
+ awful.key({ cmdmodkey, "Shift" }, "backslash", function () awful.util.spawn("xmms2 list | xmessage -nearmouse -timeout 5 -file -") end)
+)
+
+-- misc apps
+globalkeys = awful.util.table.join(globalkeys,
+ awful.key({ cmdmodkey }, "n", function () awful.util.spawn("sensible-browser") end),
+ awful.key({ cmdmodkey }, "m", function () awful.util.spawn(terminal .. " -e mutt -f =store") end),
+ awful.key({ cmdmodkey }, "t", function () awful.util.spawn(terminal) end),
+ awful.key({ cmdmodkey }, "c", function () awful.util.spawn(terminal .. " -e python") end),
+ awful.key({ cmdmodkey }, "r", function () awful.util.spawn("gmrun") end),
+ awful.key({ cmdmodkey }, "j", function () awful.util.spawn("jpilot") end),
+ awful.key({ cmdmodkey }, "x", function () awful.util.spawn("/sbin/start-stop-daemon --start --background --exec /usr/bin/xscreensaver; xscreensaver-command -lock") end),
+ awful.key({ cmdmodkey, "Shift" }, "x", function () awful.util.spawn("xscreensaver-command -exit") end)
+)