From d8500cde2e54d1ff71fb6b1c37c97df63ab0fe43 Mon Sep 17 00:00:00 2001 From: Henro Veijer Date: Wed, 25 Feb 2026 13:51:53 +0100 Subject: [PATCH] Adding indicators to hyprscrolling + dynamic columnwidth per monitor --- .../assets/conf/desktop/hypr/bindings.conf | 3 +++ .../assets/conf/desktop/hypr/hyprland.conf | 1 + .../hypr/scripts/hyprscrolling-per-monitor.sh | 17 +++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100755 henrovnix_ok/assets/conf/desktop/hypr/scripts/hyprscrolling-per-monitor.sh diff --git a/henrovnix_ok/assets/conf/desktop/hypr/bindings.conf b/henrovnix_ok/assets/conf/desktop/hypr/bindings.conf index f590f72e3..532f01f4d 100644 --- a/henrovnix_ok/assets/conf/desktop/hypr/bindings.conf +++ b/henrovnix_ok/assets/conf/desktop/hypr/bindings.conf @@ -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 diff --git a/henrovnix_ok/assets/conf/desktop/hypr/hyprland.conf b/henrovnix_ok/assets/conf/desktop/hypr/hyprland.conf index bce0cfb61..51ccf12d8 100644 --- a/henrovnix_ok/assets/conf/desktop/hypr/hyprland.conf +++ b/henrovnix_ok/assets/conf/desktop/hypr/hyprland.conf @@ -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 diff --git a/henrovnix_ok/assets/conf/desktop/hypr/scripts/hyprscrolling-per-monitor.sh b/henrovnix_ok/assets/conf/desktop/hypr/scripts/hyprscrolling-per-monitor.sh new file mode 100755 index 000000000..33e130d55 --- /dev/null +++ b/henrovnix_ok/assets/conf/desktop/hypr/scripts/hyprscrolling-per-monitor.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