Add optional extra install for hyprscrolling

This commit is contained in:
David Heinemeier Hansson
2025-10-20 16:34:13 -07:00
parent 42a5b3bf22
commit fd632f90e1
3 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
echo "Installing hyprscrolling plugin"
omarchy-pkg-add meson cpio cmake
hyprpm update
hyprpm add https://github.com/hyprwm/hyprland-plugins
hyprpm enable hyprscrolling
if ! grep -q '/hypr/scrolling\.conf' ~/.config/hypr/hyprland.conf; then
sed -i '/source = ~\/\.local\/share\/omarchy\/default\/hypr\/windows\.conf/a source = ~/.local/share/omarchy/default/hypr/scrolling.conf' ~/.config/hypr/hyprland.conf
fi

View File

@@ -232,7 +232,7 @@ show_setup_security_menu() {
}
show_install_menu() {
case $(menu "Install" "󰣇 Package\n󰣇 AUR\n Web App\n TUI\n Service\n Style\n󰵮 Development\n Editor\n Terminal\n󱚤 AI\n󰍲 Windows\n Gaming") in
case $(menu "Install" "󰣇 Package\n󰣇 AUR\n Web App\n TUI\n Service\n Style\n󰵮 Development\n Editor\n Terminal\n󱚤 AI\n󰍲 Windows\n Gaming\n Extra") in
*Package*) terminal omarchy-pkg-install ;;
*AUR*) terminal omarchy-pkg-aur-install ;;
*Web*) present_terminal omarchy-webapp-install ;;
@@ -245,6 +245,7 @@ show_install_menu() {
*AI*) show_install_ai_menu ;;
*Windows*) present_terminal "omarchy-windows-vm install" ;;
*Gaming*) show_install_gaming_menu ;;
*Extra*) show_install_extra_menu ;;
*) show_main_menu ;;
esac
}
@@ -309,6 +310,13 @@ show_install_gaming_menu() {
esac
}
show_install_extra_menu() {
case $(menu "Install" " Hyprscrolling") in
*Hyprscrolling*) present_terminal omarchy-install-hyprscrolling ;;
*) show_install_menu ;;
esac
}
show_install_style_menu() {
case $(menu "Install" "󰸌 Theme\n Background\n Font") in
*Theme*) present_terminal omarchy-theme-install ;;

View File

@@ -0,0 +1,18 @@
plugin {
hyprscrolling {
column_width = 0.7
fullscreen_on_one_column = true
focus_fit_method = 1
}
}
general {
layout = scrolling
}
bindd = SUPER, period, Focus right window column, layoutmsg, move +col
bindd = SUPER, comma, Focus left window column, layoutmsg, move -col
bindd = SUPER SHIFT, period, Move window column right, layoutmsg, movewindowto r
bindd = SUPER SHIFT, comma, Move window column left, layoutmsg, movewindowto l
bindd = SUPER SHIFT, up, Move window column up, layoutmsg, movewindowto u
bindd = SUPER SHIFT, down, Move window column down, layoutmsg, movewindowto d