update toggle remote
This commit is contained in:
@@ -2,13 +2,12 @@
|
|||||||
|
|
||||||
SECOND_MONITOR="DP-2"
|
SECOND_MONITOR="DP-2"
|
||||||
|
|
||||||
# Prüfen, ob der Monitor in der Liste der aktiven Monitore auftaucht
|
|
||||||
if hyprctl monitors | grep -q "$SECOND_MONITOR"; then
|
if hyprctl monitors | grep -q "$SECOND_MONITOR"; then
|
||||||
# Monitor ausschalten (Lua-Tabellen-Syntax)
|
# Monitor ausschalten (Offizielle Lua-Syntax: disabled = true)
|
||||||
hyprctl keyword monitor "{ output = '$SECOND_MONITOR', disable = true }"
|
hyprctl eval "hl.monitor({ output = '$SECOND_MONITOR', disabled = true })"
|
||||||
notify-send "RustDesk Modus" "DP-2 deaktiviert"
|
notify-send "RustDesk Modus" "DP-2 deaktiviert"
|
||||||
else
|
else
|
||||||
# Monitor wieder mit exakt deinen Config-Werten einschalten (Lua-Tabellen-Syntax)
|
# Monitor wieder einschalten (mit explizitem disabled = false zur Sicherheit)
|
||||||
hyprctl keyword monitor "{ output = '$SECOND_MONITOR', mode = '1920x1200@60', position = '2560x0', scale = 1 }"
|
hyprctl eval "hl.monitor({ output = '$SECOND_MONITOR', mode = '1920x1200@60', position = '2560x0', scale = 1, disabled = false })"
|
||||||
notify-send "Desktop Modus" "DP-2 aktiviert"
|
notify-send "Desktop Modus" "DP-2 aktiviert"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user