]> git.madduck.net Git - etc/awesome.git/blobdiff - .awesomerc.lua

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:

remove awesome iconbox
[etc/awesome.git] / .awesomerc.lua
index 7c6417f77fecc404369623a31270c98745c977d9..ef47a5e1ed9a62b9fd3b53890bd012b05b56da4d 100644 (file)
@@ -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
@@ -106,10 +107,6 @@ mytextbox = widget.new({ type = "textbox", name = "mytextbox", align = "right" }
 mytextbox.text = "<b><small> awesome " .. AWESOME_VERSION .. " </small></b>"
 mypromptbox = widget.new({ type = "textbox", name = "mypromptbox", align = "left" })
 
--- Create an iconbox widget
-myiconbox = widget.new({ type = "textbox", name = "myiconbox", align = "left" })
-myiconbox.text = "<bg image=\"" .. AWESOME_DATADIR .. "/icons/awesome16.png\" resize=\"true\"/>"
-
 -- Create a systray
 mysystray = widget.new({ type = "systray", name = "mysystray", align = "right" })
 
@@ -132,7 +129,6 @@ for s = 1, screen.count() do
                                    fg = fg_normal, bg = bg_normal })
     -- Add widgets to the statusbar - order matters
     mystatusbar[s]:widget_add(mytaglist)
-    mystatusbar[s]:widget_add(myiconbox)
     mystatusbar[s]:widget_add(mytasklist)
     mystatusbar[s]:widget_add(mypromptbox)
     mystatusbar[s]:widget_add(mytextbox)
@@ -392,8 +388,8 @@ keybinding.new({ cmdmodkey }, "End", function () awful.spawn("amixer set Master
 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()