]> 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:

replace ICON_PATH placeholders with DATADIR
authormartin f. krafft <madduck@madduck.net>
Fri, 18 Jul 2008 07:16:33 +0000 (09:16 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 18 Jul 2008 07:16:33 +0000 (09:16 +0200)
.config/awesome/rc.lua

index 7a3c1209f28a632f91ca2ee3ca0146ce5e849ca8..bc3da285bf7821a86b64a07fca0bee64b9105c33 100644 (file)
@@ -110,7 +110,7 @@ mytasklist:mouse_add(mouse({ }, 5, function () awful.client.focus(-1) end))
 function mytasklist.label(c)
     local text = ""
     if c.floating then
-        text = "<bg image=\"@AWESOME_ICON_PATH@/floatingw.png\" align=\"right\"/>"
+        text = "<bg image=\"" .. AWESOME_DATADIR .. "/icons/floatingw.png\" align=\"right\"/>"
     end
     if client.focus_get() == c then
         text = text .. " <bg color='"..bg_focus.."'/><span color='"..awful.escape(fg_focus).."'>"..c.name.."</span> "
@@ -361,7 +361,7 @@ end
 -- (tag switch, new client, etc)
 function hook_arrange(screen)
     local layout = awful.layout.get(screen)
-    mylayoutbox[screen].text = "<bg image=\"@AWESOME_ICON_PATH@/layouts/" .. layout .. "w.png\" resize=\"true\"/>"
+    mylayoutbox[screen].text = "<bg image=\"" .. AWESOME_DATADIR .. "/icons/layouts/" .. layout .. "w.png\" resize=\"true\"/>"
 
     -- Uncomment if you want mouse warping
     --[[