initial monitor rotation scripts
This commit is contained in:
@@ -14,7 +14,7 @@ monitor=,preferred,auto,1
|
||||
monitorv2 {
|
||||
output = DP-1
|
||||
mode = 3840x2160@60
|
||||
position = auto-right
|
||||
position = auto
|
||||
scale = 1.5
|
||||
transform = 0
|
||||
}
|
||||
@@ -22,7 +22,7 @@ monitorv2 {
|
||||
monitorv2 {
|
||||
output = HDMI-A-1
|
||||
mode = 3840x2160@30
|
||||
position = auto-right
|
||||
position = auto
|
||||
scale = 1.5
|
||||
transform = 0
|
||||
}
|
||||
@@ -208,7 +208,7 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
# Move workspace to next monitor (right)
|
||||
bind = $mainMod SHIFT, TAB, movecurrentworkspacetomonitor, r
|
||||
|
||||
# Rotate screen with arrows //TODO: apply to 'current', don't change resolution, frame rate, or scale. Just Rotate
|
||||
# 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, 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"
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
dir=$1
|
||||
config=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | "\(.name),transform,'$dir'"')
|
||||
|
||||
echo $config
|
||||
|
||||
hyprctl keyword monitor $config
|
||||
Regular → Executable
+1
-1
@@ -1,3 +1,3 @@
|
||||
# bin/bash
|
||||
#!/bin/sh
|
||||
dir=$1
|
||||
echo "current monitor $1"
|
||||
|
||||
Reference in New Issue
Block a user