X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/f417255eb4f063b0caa26f5be88123a456f2928a..ff3d38e32079347b4eed7e368a9f48bbea43e362:/.awesomerc.lua
diff --git a/.awesomerc.lua b/.awesomerc.lua
index f207526..d2c717e 100644
--- a/.awesomerc.lua
+++ b/.awesomerc.lua
@@ -92,14 +92,33 @@ mytaglist:mouse_add(mouse({}, 3, function (object, tag) tag.selected = not tag.s
mytaglist:mouse_add(mouse({ modkey }, 3, function (object, tag) awful.client.toggletag(tag) end))
mytaglist:mouse_add(mouse({ }, 4, awful.tag.viewnext))
mytaglist:mouse_add(mouse({ }, 5, awful.tag.viewprev))
-mytaglist.text_focus = " "
+function mytaglist.label(t)
+ local text = ""
+ if t.selected then
+ text = " "..t.name.." "
+ else
+ text = " "..t.name.." "
+ end
+ return text
+end
-- Create a tasklist widget
mytasklist = widget({ type = "tasklist", name = "mytasklist" })
mytasklist:mouse_add(mouse({ }, 1, function (object, c) c:focus_set(); c:raise() end))
mytasklist:mouse_add(mouse({ }, 4, function () awful.client.focus(1) end))
mytasklist:mouse_add(mouse({ }, 5, function () awful.client.focus(-1) end))
-mytasklist.text_focus = " "
+function mytasklist.label(c)
+ local text = ""
+ if c.floating then
+ text = ""
+ end
+ if client.focus_get() == c then
+ text = text .. " "..c.name.." "
+ else
+ text = text .. " "..awful.escape(c.name).." "
+ end
+ return text
+end
-- Create a textbox widget
mytextbox = widget({ type = "textbox", name = "mytextbox", align = "right" })
@@ -109,7 +128,7 @@ mypromptbox = widget({ type = "textbox", name = "mypromptbox", align = "left" })
-- Create an iconbox widget
myiconbox = widget({ type = "textbox", name = "myiconbox", align = "left" })
-myiconbox.text = ""
+myiconbox.text = ""
-- Create a systray
mysystray = widget({ type = "systray", name = "mysystray", align = "right" })
@@ -123,7 +142,7 @@ for s = 1, screen.count() do
mylayoutbox[s]:mouse_add(mouse({ }, 3, function () awful.layout.inc(layouts, -1) end))
mylayoutbox[s]:mouse_add(mouse({ }, 4, function () awful.layout.inc(layouts, 1) end))
mylayoutbox[s]:mouse_add(mouse({ }, 5, function () awful.layout.inc(layouts, -1) end))
- mylayoutbox[s].text = ""
+ mylayoutbox[s].text = ""
end
-- Create a statusbar for each screen and add it