Adding indicators to hyprscrolling + dynamic columnwidth per monitor

This commit is contained in:
2026-02-25 13:51:53 +01:00
parent 496ba5e53f
commit d8500cde2e
3 changed files with 21 additions and 0 deletions
@@ -109,6 +109,9 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# bind = $mainMod, period, layoutmsg, move +col
# bind = $mainMod, comma, layoutmsg, swapcol l
# Mouse drag
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
@@ -89,3 +89,4 @@ bindl = , switch:on:Lid Switch, exec, ~/.config/hypr/scripts/lid-lock.sh
bindl = , switch:off:Lid Switch, exec, hyprctl dispatch dpms on
exec-once = systemd-run --user --scope --unit=elephant elephant
exec-once = ~/.config/hypr/scripts/hyprscrolling-listener.sh
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
# Adjust these to match `hyprctl monitors`
ULTRAWIDE="DP-1"
LAPTOP="eDP-1"
MONITOR="$1"
case "$MONITOR" in
"$ULTRAWIDE")
hyprctl dispatch layoutmsg colresize all 0.25
;;
"$LAPTOP")
hyprctl dispatch layoutmsg colresize all 1.0
;;
esac