X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/36c5c8132c20e4f507b4f35c31154c5d085695c1..3ae1307d842b93d02c11fb95990adb9193ef7962:/.awesomerc.lua?ds=sidebyside diff --git a/.awesomerc.lua b/.awesomerc.lua index fcc64a0..6373c1c 100644 --- a/.awesomerc.lua +++ b/.awesomerc.lua @@ -1,7 +1,7 @@ -- awesome 3 configuration file -AWESOME_DATADIR = "/home/madduck/code" -package.path = AWESOME_DATADIR .. "/awesome/lib/?.lua;" .. package.path +AWESOME_DATADIR = "/home/madduck/code/awesome" +package.path = AWESOME_DATADIR .. "/lib/?.lua;" .. package.path -- Include awesome library, with lots of useful function! require("awful") @@ -42,7 +42,8 @@ floatings = ["pinentry"] = true, ["GIMP"] = true, ["twinkle"] = true, - ["Add-ons"] = true + ["Add-ons"] = true, + ["Play stream"] = true } -- Color & Appearance definitions, we use these later to display things @@ -379,3 +380,28 @@ awful.hooks.mouseover(hook_mouseover) awful.hooks.arrange(hook_arrange) awful.hooks.timer(1, hook_timer) -- }}} + +cmdmodkey = "Mod3" + +-- xmms2 & sound +keybinding.new({ cmdmodkey }, "Prior", function () awful.spawn("amixer set Master 2+") end):add() +keybinding.new({ cmdmodkey }, "Next", function () awful.spawn("amixer set Master 2-") end):add() +keybinding.new({ cmdmodkey }, "Up", function () awful.spawn("amixer set PCM 2+") end):add() +keybinding.new({ cmdmodkey }, "Down", function () awful.spawn("amixer set PCM 2-") end):add() +keybinding.new({ cmdmodkey }, "Home", function () awful.spawn("amixer set Mic toggle") end):add() +keybinding.new({ cmdmodkey }, "End", function () awful.spawn("amixer set Master toggle") end):add() +keybinding.new({ cmdmodkey }, "Left", function () awful.spawn("xmms2 prev") end):add() +keybinding.new({ cmdmodkey }, "Right", function () awful.spawn("xmms2 next") end):add() +keybinding.new({ cmdmodkey }, "space", function () awful.spawn("xmms2 toggle") end):add() +keybinding.new({ cmdmodkey }, "backslash", function () awful.spawn("xmms2 current | head -1 | xmessage -nearmouse -timeout 5 -file -") end):add() +keybinding.new({ cmdmodkey, "Shift" }, "backslash", function () awful.spawn("xmms2 list | xmessage -nearmouse -timeout 5 -file -") end):add() + +-- misc apps +keybinding.new({ cmdmodkey }, "n", function () awful.spawn("sensible-browser") end):add() +keybinding.new({ cmdmodkey }, "m", function () awful.spawn(terminal .. " -e mutt -f =store") end):add() +keybinding.new({ cmdmodkey }, "t", function () awful.spawn(terminal) end):add() +keybinding.new({ cmdmodkey }, "c", function () awful.spawn(terminal .. " -e python") end):add() +keybinding.new({ cmdmodkey }, "r", function () awful.spawn("gmrun") end):add() +keybinding.new({ cmdmodkey }, "j", function () awful.spawn("jpilot") end):add() +keybinding.new({ cmdmodkey }, "x", function () awful.spawn("/sbin/start-stop-daemon --start --background --exec /usr/bin/xscreensaver; xscreensaver-command -lock") end):add() +keybinding.new({ cmdmodkey, "Shift" }, "x", function () awful.spawn("xscreensaver-command -exit") end):add()