add SUPER + SHIFT + R to togel DP-2
This commit is contained in:
@@ -366,6 +366,8 @@ bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
bind = $mainMod SHIFT, R, exec, ~/.config/hypr/toggle_remote.sh
|
||||
|
||||
##############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
||||
13
.config/hypr/toggle_remote.sh
Executable file
13
.config/hypr/toggle_remote.sh
Executable 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
|
||||
Reference in New Issue
Block a user