nVidia Optimus icon: open nvidia-settings on left mouse button click.
This commit is contained in:
parent
a88e255d6d
commit
709e679630
5
rc.lua
5
rc.lua
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue