Dynamically switch between sway and sway-nvidia based on active gpu.
Find a file
2024-04-15 17:31:37 +02:00
LICENSE Initial commit 2024-04-15 17:19:38 +02:00
PKGBUILD Initial implementation. 2024-04-15 17:31:37 +02:00
README.md Initial implementation. 2024-04-15 17:31:37 +02:00
sway-dynamic Initial implementation. 2024-04-15 17:31:37 +02:00
sway-dynamic.desktop Initial implementation. 2024-04-15 17:31:37 +02:00

sway-dynamic

Dynamically switch between sway and sway-nvidia based on active gpu.

Usage

When booting a GPU set the environment variable GPUMODE=<driver> with something like systemd.setenv=GPUMODE=<driver>. The script will decide how to launch sway depending on this variable. Possible values:

  • nvidia
  • nouveau