13 lines
561 B
Bash
Executable File
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 |