From 908d4e7e0a4afc9fccb8038cf7dcf647ea3f368e Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 26 Sep 2016 14:39:14 +0300 Subject: [PATCH] Memory widget: show atop on left mouse click. --- rc.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rc.lua b/rc.lua index 48b3548..c1efc1f 100644 --- a/rc.lua +++ b/rc.lua @@ -269,6 +269,13 @@ end cpuicon: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.register(wifi_widget_down, vicious.widgets.net, '${wifi0 down_mb}', 2) vicious.register(wifi_widget_up, vicious.widgets.net, '${wifi0 up_mb}', 2)