From 709e6796304c34777ba22f56a1a73a2c53aca485 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 26 Sep 2016 12:22:55 +0300 Subject: [PATCH] nVidia Optimus icon: open nvidia-settings on left mouse button click. --- rc.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rc.lua b/rc.lua index 997d408..fdb89ad 100644 --- a/rc.lua +++ b/rc.lua @@ -237,6 +237,11 @@ optimus_icon.timer:connect_signal("timeout", end end) optimus_icon.timer:start() +optimus_icon:buttons(awful.util.table.join(awful.button({ }, 1, + function () + os.execute ("pgrep nvidia-settings || optirun nvidia-settings -c :8 &") + end +))) -- Wi-Fi / Ethernet widgets local wifi_widget_down = wibox.widget.textbox()