Still finding the proper config for hyprscrolling
This commit is contained in:
@@ -1,30 +1,62 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
plugins = [
|
||||
pkgs.hyprlandPlugins.hyprscrolling
|
||||
];
|
||||
# --------------------------------------------------
|
||||
# Hyprscrolling – scrolling layout with indicators
|
||||
# Managed in repo: assets/conf/desktop/hypr/hyprscrolling.conf
|
||||
# --------------------------------------------------
|
||||
|
||||
extraConfig = lib.mkAfter ''
|
||||
############################
|
||||
# Hyprscrolling (scrolling layout)
|
||||
############################
|
||||
# Load plugin (.so is symlinked by Nix module)
|
||||
plugin = /etc/hypr/plugins/libhyprscrolling.so
|
||||
|
||||
general {
|
||||
layout = scrolling
|
||||
}
|
||||
|
||||
# hyprscrolling uses plugin:hyprscrolling
|
||||
plugin:hyprscrolling {
|
||||
# examples; tune to taste
|
||||
# column_width = 0.70
|
||||
# fullscreen_on_one_column = 1
|
||||
}
|
||||
'';
|
||||
};
|
||||
# Make scrolling the default layout
|
||||
general {
|
||||
layout = scrolling
|
||||
}
|
||||
|
||||
# --------------------------------------------------
|
||||
# Plugin configuration
|
||||
# --------------------------------------------------
|
||||
|
||||
plugin:hyprscrolling {
|
||||
|
||||
# --- Core behaviour ---
|
||||
enable = true
|
||||
focus_follows_mouse = true
|
||||
smooth_scrolling = true
|
||||
|
||||
# --- Gaps & spacing ---
|
||||
gaps_in = 6
|
||||
gaps_out = 16
|
||||
|
||||
# --- Indicators ---
|
||||
# Show visual indicators for stacked windows
|
||||
indicators = true
|
||||
|
||||
# Style of indicators (examples: line, dots, bar)
|
||||
indicator_style = bar
|
||||
|
||||
# Thickness / size
|
||||
indicator_thickness = 4
|
||||
|
||||
# Spacing between indicators
|
||||
indicator_spacing = 6
|
||||
|
||||
# Offset from window edge
|
||||
indicator_offset = 8
|
||||
|
||||
# Colors (RGBA)
|
||||
indicator_color_active = rgba(137, 180, 250, 0.9) # blue-ish (Catppuccin style)
|
||||
indicator_color_inactive = rgba(88, 91, 112, 0.6)
|
||||
|
||||
# Position (top, bottom, left, right)
|
||||
indicator_position = bottom
|
||||
}
|
||||
|
||||
# --------------------------------------------------
|
||||
# Optional keybinds
|
||||
# --------------------------------------------------
|
||||
|
||||
# Scroll through stack
|
||||
bind = SUPER, mouse_down, layoutmsg, scroll +1
|
||||
bind = SUPER, mouse_up, layoutmsg, scroll -1
|
||||
|
||||
# Toggle layout manually
|
||||
bind = SUPER, S, layoutmsg, togglesplit
|
||||
|
||||
Reference in New Issue
Block a user