nVidia Optimus icon: open nvidia-settings on left mouse button click.

This commit is contained in:
Kolan Sh 2016-09-26 12:22:55 +03:00
parent a88e255d6d
commit 709e679630
1 changed files with 5 additions and 0 deletions

5
rc.lua
View File

@ -237,6 +237,11 @@ optimus_icon.timer:connect_signal("timeout",
end end
end) end)
optimus_icon.timer:start() 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 -- Wi-Fi / Ethernet widgets
local wifi_widget_down = wibox.widget.textbox() local wifi_widget_down = wibox.widget.textbox()