diff --git a/bin/omarchy-install-hyprscrolling b/bin/omarchy-install-hyprscrolling new file mode 100755 index 0000000..d565769 --- /dev/null +++ b/bin/omarchy-install-hyprscrolling @@ -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 diff --git a/bin/omarchy-menu b/bin/omarchy-menu index e9c4a69..c0f58a1 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -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 ;; diff --git a/default/hypr/scrolling.conf b/default/hypr/scrolling.conf new file mode 100644 index 0000000..9fefe87 --- /dev/null +++ b/default/hypr/scrolling.conf @@ -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