summaryrefslogtreecommitdiff
path: root/pager.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-02-07 17:13:29 +0100
committerAnton Khirnov <anton@khirnov.net>2017-02-07 17:13:29 +0100
commitf57f42d2e86d3c44b662ea0f587fb74d3f85ff4b (patch)
tree9734688c84b4e1b589df1c8ceb37bc5bc3a0572b /pager.lua
parent2502443f979a3efd073b2278734ec394fae3bfaf (diff)
Add functionality for desktop renaming.
Diffstat (limited to 'pager.lua')
-rw-r--r--pager.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/pager.lua b/pager.lua
index 1cef725..d2e67d4 100644
--- a/pager.lua
+++ b/pager.lua
@@ -114,6 +114,12 @@ local function pager_set_desktop(self, desktop)
local title_fg = beautiful.fg_focus or "#000000"
local title_container = wibox.widget.background(title, title_bg)
title_container:set_fg(title_fg)
+
+ self.desktop:connect_signal("desktop:name",
+ function(desktop, name)
+ title:set_text(name)
+ end)
+
self:add(title_container)
for i = 1, nb_pages do