]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

import keybindings for programmes from fluxbox
authormartin f. krafft <madduck@madduck.net>
Sun, 29 Jun 2008 16:20:52 +0000 (18:20 +0200)
committermartin f. krafft <madduck@madduck.net>
Sun, 29 Jun 2008 16:20:52 +0000 (18:20 +0200)
.awesomerc.lua

index fcc64a0c6ec62b0436eaed24896f1517c51b7312..7c6417f77fecc404369623a31270c98745c977d9 100644 (file)
@@ -379,3 +379,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("mpc | head -1 | xmessage -nearmouse -timeout 5 -file -") end):add()
+-- keybinding.new({ cmdmodkey, "Shift" }, "backslash", function () awful.spawn("mpc playlist | 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()