2025-02-25 10:55:29 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# ecran_maison
|
|
|
|
#
|
|
|
|
# Active les 2 écrans de la maison sur le Dock Station branché.
|
2025-01-08 08:58:36 +00:00
|
|
|
<<<<<<< HEAD
|
2025-02-25 10:55:29 +00:00
|
|
|
#
|
|
|
|
# Écran principal : Iiyama North America PL2474H 11669V9B05959
|
|
|
|
# Écran secondaire : Iiyama North America PLX2283H 1159495081860
|
|
|
|
# Écran PC portable : BOE 0x0BCA Unknown
|
|
|
|
|
|
|
|
# PC portable
|
|
|
|
laptopscreen="'BOE 0x0BCA Unknown'"
|
|
|
|
# Écran principal
|
|
|
|
mainscreen="'Iiyama North America PL2474H 11669V9B05959'"
|
|
|
|
# Écran secondaire
|
|
|
|
otherscreen="'Iiyama North America PLX2283H 1159495081860'"
|
|
|
|
|
|
|
|
# Active l'écran secondaire
|
|
|
|
swaymsg output "${otherscreen}" enable
|
|
|
|
# Tourne l'écran de droite de 90°
|
2025-02-26 08:24:26 +00:00
|
|
|
swaymsg output "${otherscreen}" transform 90 anticlockwise
|
2025-02-25 10:55:29 +00:00
|
|
|
# Déplace l'écran de droite à 1920px (pour rester à droite)
|
|
|
|
swaymsg output "${otherscreen}" pos 1920 0
|
|
|
|
|
|
|
|
# Active l'écran principal
|
|
|
|
swaymsg output "${mainscreen}" enable
|
|
|
|
# Descend l'écran principal vers le bas de 840px
|
|
|
|
swaymsg output "${mainscreen}" pos 0 840
|
|
|
|
|
|
|
|
# Éteint l'écran du PC portable
|
|
|
|
swaymsg output "${laptopscreen}" disable
|
2025-01-08 08:58:36 +00:00
|
|
|
=======
|
|
|
|
|
|
|
|
# Active DP-10
|
|
|
|
wlr-randr --output DP-10 --on
|
|
|
|
# Tourne l'écran de droite de 90°
|
|
|
|
wlr-randr --output DP-10 --transform 90
|
|
|
|
# Déplace l'écran de droite à 1920px (pour rester à droite)
|
|
|
|
wlr-randr --output DP-10 --pos 1920,0
|
|
|
|
|
|
|
|
# Active DP-9
|
|
|
|
wlr-randr --output DP-9 --on
|
|
|
|
# Descend l'écran principal vers le bas de 840px
|
|
|
|
wlr-randr --output DP-9 --pos 0,840
|
|
|
|
|
|
|
|
# Éteint l'écran du PC portable
|
|
|
|
wlr-randr --output eDP-1 --off
|
|
|
|
>>>>>>> 120388f (feat(bin): Add 2 new scripts for screens)
|