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:
parent
07f34be546
commit
37e4108021
3 changed files with 185 additions and 123 deletions
10
roles/lmn_fvs/templates/lmn-fix-screen.j2
Normal file
10
roles/lmn_fvs/templates/lmn-fix-screen.j2
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue