Memory widget: show atop on left mouse click.

This commit is contained in:
Kolan Sh 2016-09-26 14:39:14 +03:00
parent 217eb693d8
commit 908d4e7e0a
1 changed files with 7 additions and 0 deletions

7
rc.lua
View File

@ -269,6 +269,13 @@ end
cpuicon:buttons(awful.util.table.join(awful.button({ }, 1, show_htop))) cpuicon:buttons(awful.util.table.join(awful.button({ }, 1, show_htop)))
cpu:buttons(awful.util.table.join(awful.button({ }, 1, show_htop))) cpu:buttons(awful.util.table.join(awful.button({ }, 1, show_htop)))
-- Memory icon
function show_atop ()
os.execute ("pgrep atop || urxvt -e atop &")
end
memicon:buttons(awful.util.table.join(awful.button({ }, 1, show_atop)))
mem:buttons(awful.util.table.join(awful.button({ }, 1, show_atop)))
vicious.cache(vicious.widgets.net) vicious.cache(vicious.widgets.net)
vicious.register(wifi_widget_down, vicious.widgets.net, '<span color="#baa53f">${wifi0 down_mb}</span>', 2) vicious.register(wifi_widget_down, vicious.widgets.net, '<span color="#baa53f">${wifi0 down_mb}</span>', 2)
vicious.register(wifi_widget_up, vicious.widgets.net, '<span color="#b165bd">${wifi0 up_mb}</span>', 2) vicious.register(wifi_widget_up, vicious.widgets.net, '<span color="#b165bd">${wifi0 up_mb}</span>', 2)