chore(bin): Add 2 scripts for screen config.
This commit is contained in:
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
|
Reference in New Issue
Block a user