mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 04:20:23 +00:00
Add optional extra install for hyprscrolling
This commit is contained in:
12
bin/omarchy-install-hyprscrolling
Executable file
12
bin/omarchy-install-hyprscrolling
Executable 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
|
||||||
@@ -232,7 +232,7 @@ show_setup_security_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_install_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 ;;
|
*Package*) terminal omarchy-pkg-install ;;
|
||||||
*AUR*) terminal omarchy-pkg-aur-install ;;
|
*AUR*) terminal omarchy-pkg-aur-install ;;
|
||||||
*Web*) present_terminal omarchy-webapp-install ;;
|
*Web*) present_terminal omarchy-webapp-install ;;
|
||||||
@@ -245,6 +245,7 @@ show_install_menu() {
|
|||||||
*AI*) show_install_ai_menu ;;
|
*AI*) show_install_ai_menu ;;
|
||||||
*Windows*) present_terminal "omarchy-windows-vm install" ;;
|
*Windows*) present_terminal "omarchy-windows-vm install" ;;
|
||||||
*Gaming*) show_install_gaming_menu ;;
|
*Gaming*) show_install_gaming_menu ;;
|
||||||
|
*Extra*) show_install_extra_menu ;;
|
||||||
*) show_main_menu ;;
|
*) show_main_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -309,6 +310,13 @@ show_install_gaming_menu() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_install_extra_menu() {
|
||||||
|
case $(menu "Install" " Hyprscrolling") in
|
||||||
|
*Hyprscrolling*) present_terminal omarchy-install-hyprscrolling ;;
|
||||||
|
*) show_install_menu ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
show_install_style_menu() {
|
show_install_style_menu() {
|
||||||
case $(menu "Install" " Theme\n Background\n Font") in
|
case $(menu "Install" " Theme\n Background\n Font") in
|
||||||
*Theme*) present_terminal omarchy-theme-install ;;
|
*Theme*) present_terminal omarchy-theme-install ;;
|
||||||
|
|||||||
18
default/hypr/scrolling.conf
Normal file
18
default/hypr/scrolling.conf
Normal 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
|
||||||
Reference in New Issue
Block a user