Files
Dots/.config/hypr/scripts/toggle_remote.sh
2026-06-01 18:59:13 +02:00

13 lines
561 B
Bash
Executable File

#!/bin/bash
SECOND_MONITOR="DP-2"
if hyprctl monitors | grep -q "$SECOND_MONITOR"; then
# 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 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