-- 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")
["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
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()
+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()