Skip to content

Commit

Permalink
widgets: manage_client: added hover for text mode
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Jul 7, 2014
1 parent 4ef0ee9 commit dbafd05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion actionless/widgets/manage_client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ local function worker(args)
manage_client.widget.text_widget:set_text(' x ')
manage_client.widget = common.decorated({widget=manage_client.widget})
manage_client.widget:set_color(args.color_n or 1)
manage_client.widget:connect_signal(
"mouse::enter", function () manage_client.widget:set_color('err') end)
manage_client.widget:connect_signal(
"mouse::leave", function () manage_client.widget:set_color(args.color_n or 1) end)
end

manage_client.widget:buttons(awful.util.table.join(
--awful.button({ }, 1, function () alsa.toggle() end),
--awful.button({ }, 5, function () alsa.down() end),
awful.button({ }, 1, function ()
naughty.notify({text='DEBUG'})
--naughty.notify({text='DEBUG'})
capi.client.focus:kill() end)
))

Expand Down

0 comments on commit dbafd05

Please sign in to comment.