chezmoi/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/system-gpu-optimus
2021-02-25 09:38:16 +01:00
..
screenshots Updated polybar-scripts. 2021-02-25 09:38:16 +01:00
README.md Updated polybar-scripts. 2021-02-25 09:38:16 +01:00
system-gpu-optimus.sh Updated polybar-scripts. 2021-02-25 09:38:16 +01:00

Script: system-gpu-optimus

A script that shows the current GPU in use, given that the GPUs are managed by optimus-manager.

The script also allows for switching GPU in one click. Be aware that this will log you out of your session without asking for confirmation.

system-gpu-optimus

Configuration

Set hybrid_switching to 1 if the system switches between hybrid and nvidia. Otherwise the system switches between intel and nvidia.

Module

[module/system-gpu-optimus]
type = custom/script
exec = ~/polybar-scripts/system-gpu-optimus.sh
interval = 1200
click-right = ~/polybar-scripts/system-gpu-optimus.sh --switch