add SUPER + SHIFT + R to togel DP-2

This commit is contained in:
2026-05-14 23:05:34 +02:00
parent cbe2f91b38
commit 1ba1c7625f
2 changed files with 15 additions and 0 deletions

View File

@@ -366,6 +366,8 @@ bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous bindl = , XF86AudioPrev, exec, playerctl previous
bind = $mainMod SHIFT, R, exec, ~/.config/hypr/toggle_remote.sh
############################## ##############################
### WINDOWS AND WORKSPACES ### ### WINDOWS AND WORKSPACES ###
############################## ##############################

13
.config/hypr/toggle_remote.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
SECOND_MONITOR="DP-2"
if hyprctl monitors | grep -q "$SECOND_MONITOR"; then
# Monitor ausschalten
hyprctl keyword monitor "$SECOND_MONITOR, disable"
notify-send "RustDesk Modus" "DP-2 deaktiviert"
else
# Monitor wieder mit exakt deinen Config-Werten einschalten
hyprctl keyword monitor "$SECOND_MONITOR, 1920x1200@60, 2560x0, 1"
notify-send "Desktop Modus" "DP-2 aktiviert"
fi