Disk widget: show iotop on left mouse click.

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

7
rc.lua
View File

@ -276,6 +276,13 @@ end
memicon:buttons(awful.util.table.join(awful.button({ }, 1, show_atop)))
mem:buttons(awful.util.table.join(awful.button({ }, 1, show_atop)))
-- Disk icon
function show_iotop ()
os.execute ("pgrep iotop || urxvt -e sudo iotop --delay=4 &")
end
diskicon:buttons(awful.util.table.join(awful.button({ }, 1, show_iotop)))
disk:buttons(awful.util.table.join(awful.button({ }, 1, show_iotop)))
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_up, vicious.widgets.net, '<span color="#b165bd">${wifi0 up_mb}</span>', 2)