Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
change one hardcode signal name to a predefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
RMTT committed Sep 18, 2020
1 parent 95fb49d commit bb4d81f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions theme/fly/signal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ return {
},
wallpaper = {
update_wallpaper = "wallpaper::update"
},
taglist = {
update_icon = "taglist::update_icon"
}
}
3 changes: 2 additions & 1 deletion theme/fly/widget/taglist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require("beautiful")
local sig = require("theme.fly.signal")

local taglist = {}

Expand Down Expand Up @@ -63,7 +64,7 @@ function taglist:init(config)

t:connect_signal("property::selected", update_icon)

t:connect_signal("taglist::update_icon", update_icon)
t:connect_signal(sig.taglist.update_icon, update_icon)
end,
widget = wibox.container.margin
},
Expand Down

0 comments on commit bb4d81f

Please sign in to comment.