chore(bin): Add 2 scripts for screen config.
This commit is contained in:
parent
47368004ab
commit
3f1072471e
23
bin/ecran_framework
Executable file
23
bin/ecran_framework
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# ecran_framework
|
||||
#
|
||||
# Désactive les écrans. N'active que celui du PC portable Framework
|
||||
#
|
||||
# É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'"
|
||||
|
||||
# Éteint l'écran principal et secondaire
|
||||
swaymsg output "${mainscreen}" disable
|
||||
swaymsg output "${otherscreen}" disable
|
||||
|
||||
# Allume l'écran du PC portable
|
||||
swaymsg output "${laptopscreen}" enable
|
31
bin/ecran_maison
Executable file
31
bin/ecran_maison
Executable file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# ecran_maison
|
||||
#
|
||||
# Active les 2 écrans de la maison sur le Dock Station branché.
|
||||
#
|
||||
# É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°
|
||||
swaymsg output "${otherscreen}" transform 90 clockwise
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user