update toggle remote
This commit is contained in:
@@ -2,13 +2,12 @@
|
||||
|
||||
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 }"
|
||||
# Monitor ausschalten (Offizielle Lua-Syntax: disabled = true)
|
||||
hyprctl eval "hl.monitor({ output = '$SECOND_MONITOR', disabled = 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 }"
|
||||
# Monitor wieder einschalten (mit explizitem disabled = false zur Sicherheit)
|
||||
hyprctl eval "hl.monitor({ output = '$SECOND_MONITOR', mode = '1920x1200@60', position = '2560x0', scale = 1, disabled = false })"
|
||||
notify-send "Desktop Modus" "DP-2 aktiviert"
|
||||
fi
|
||||
Reference in New Issue
Block a user