Provide dual screen setup where needed.

For SDDM, the projector is switched off: dual_screen[0].
For Wayland, dual_screen[1] is set as primary screen.
This commit is contained in:
Andreas B. Mundt 2024-02-14 12:49:27 +01:00
parent 07f34be546
commit 37e4108021
3 changed files with 185 additions and 123 deletions

View file

@ -0,0 +1,10 @@
#!/usr/bin/bash
#
# Set the primary screen after login
#
set -eu
sleep 5
if [[ "$XDG_SESSION_TYPE" = wayland ]] ; then
kscreen-doctor output.{{ dual_screen[1] }}.priority.1
fi