From 1bb979d7d3330d0c98d27ecd4c8cb5495e976d35 Mon Sep 17 00:00:00 2001 From: jafreli Date: Sun, 31 May 2026 02:48:16 +0200 Subject: [PATCH] update toggle remote --- .config/hypr/toggle_remote.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.config/hypr/toggle_remote.sh b/.config/hypr/toggle_remote.sh index 5ddc5ec..07cee95 100755 --- a/.config/hypr/toggle_remote.sh +++ b/.config/hypr/toggle_remote.sh @@ -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 \ No newline at end of file