14 lines
595 B
Bash
Executable File
14 lines
595 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SECOND_MONITOR="DP-2"
|
|
|
|
# Prüfen, ob der Monitor in der Liste der aktiven Monitore auftaucht
|
|
if hyprctl monitors | grep -q "$SECOND_MONITOR"; then
|
|
# Monitor ausschalten (Lua-Tabellen-Syntax)
|
|
hyprctl keyword monitor "{ output = '$SECOND_MONITOR', disable = true }"
|
|
notify-send "RustDesk Modus" "DP-2 deaktiviert"
|
|
else
|
|
# Monitor wieder mit exakt deinen Config-Werten einschalten (Lua-Tabellen-Syntax)
|
|
hyprctl keyword monitor "{ output = '$SECOND_MONITOR', mode = '1920x1200@60', position = '2560x0', scale = 1 }"
|
|
notify-send "Desktop Modus" "DP-2 aktiviert"
|
|
fi |