monitor swapping scripts
This commit is contained in:
1 parent
924eecc497
commit
aa2cdc134e
5 files changed
+19
-16
No files matched your search
@@ -58,6 +58,12 @@ exec-once = waybar
|
|||||||
env = HYPRCURSOR_THEME,rose-pine-hyprcursor
|
env = HYPRCURSOR_THEME,rose-pine-hyprcursor
|
||||||
env = HYPRCURSOR_SIZE,18
|
env = HYPRCURSOR_SIZE,18
|
||||||
|
|
||||||
|
####################
|
||||||
|
### SCRIPT PATHS ###
|
||||||
|
####################
|
||||||
|
|
||||||
|
switchFocus = "~/.config/hypr/scripts/switch-to-unfocused-monitor.sh"
|
||||||
|
moveAndSwitch = "~/.config/hypr/scripts/move-workspace-to-unfocused-monitor"
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
### LOOK AND FEEL ###
|
### LOOK AND FEEL ###
|
||||||
@@ -205,13 +211,14 @@ bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||||
|
|
||||||
# Move workspace to next monitor (right)
|
# Move workspace to unfocused monitor (Does not currently support more than two monitors)
|
||||||
bind = $mainMod SHIFT, TAB, movecurrentworkspacetomonitor, r
|
bind = $mainMod SHIFT, TAB, exec, $moveAndSwitch
|
||||||
|
|
||||||
# Move focus to next monitor (right)
|
# Switch to unfocused monitor (Does not currently support more than two monitors)
|
||||||
bind = $mainMod, TAB, focusmonitor, r
|
bind = $mainMod, TAB, exec, $switchFocus
|
||||||
|
|
||||||
# Rotate screen with arrows //TODO: only works on builtin display (see scripts)
|
# Rotate screen with arrows
|
||||||
|
# TODO: only works on builtin display (see scripts)
|
||||||
bind = $mainMod SHIFT, up, exec, hyprctl keyword monitor "eDP-1,preferred,auto,1,transform,0"
|
bind = $mainMod SHIFT, up, exec, hyprctl keyword monitor "eDP-1,preferred,auto,1,transform,0"
|
||||||
bind = $mainMod SHIFT, down, exec, hyprctl keyword monitor "eDP-1,preferred,auto,1,transform,2"
|
bind = $mainMod SHIFT, down, exec, hyprctl keyword monitor "eDP-1,preferred,auto,1,transform,2"
|
||||||
bind = $mainMod SHIFT, left, exec, hyprctl keyword monitor "eDP-1,preferred,auto,1,transform,1"
|
bind = $mainMod SHIFT, left, exec, hyprctl keyword monitor "eDP-1,preferred,auto,1,transform,1"
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
dir=$1
|
|
||||||
config=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | "\(.name),transform,'$dir'"')
|
|
||||||
|
|
||||||
echo $config
|
|
||||||
|
|
||||||
hyprctl keyword monitor $config
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
dir=$1
|
|
||||||
echo "current monitor $1"
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
monitor=$(hyprctl monitors -j | jq -r 'first(.[] | select(.focused == false) | .name)')
|
||||||
|
hyprctl dispatch movecurrentworkspacetomonitor $monitor
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
monitor=$(hyprctl monitors -j | jq -r 'first(.[] | select(.focused == false) | .name)')
|
||||||
|
|
||||||
|
hyprctl dispatch focusmonitor $monitor
|
||||||
Reference in new issue
Block a user