From 0efe1cac36a5f0c9190795fbefc38120bda549d8 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Tue, 25 Aug 2026 22:07:52 -0400 Subject: [PATCH] now vertical scroll --- configs/fwbook/hypr/ABOUTME.md | 6 ++++++ configs/fwbook/hypr/conf/animations.lua | 13 +++++++++++++ configs/fwbook/hypr/hyprland.lua | 1 + 3 files changed, 20 insertions(+) create mode 100644 configs/fwbook/hypr/conf/animations.lua diff --git a/configs/fwbook/hypr/ABOUTME.md b/configs/fwbook/hypr/ABOUTME.md index 02f53b3..bb91890 100644 --- a/configs/fwbook/hypr/ABOUTME.md +++ b/configs/fwbook/hypr/ABOUTME.md @@ -44,6 +44,12 @@ hypr/ └── conf/ ├── env.lua # cursor size + Wayland/Qt/Electron env hints (hl.env) ├── general.lua # scrolling layout, gaps/border/rounding (hl.config) + ├── animations.lua # vertical workspace-switch animation (hl.animation) + ├── animations.lua # vertical workspace slide (slidevert), niri-like (hl.animation): +`style = "slidevert"`) to mirror niri's vertically-stacked workspaces, instead of +Hyprland's default horizontal `slide`. Only the `workspaces` leaf is overridden; +everything else stays on Hyprland defaults. Other `workspaces` styles available: +`slide`, `fade`, `slidefade`, `slidefadevert`. ├── monitors.lua # hl.monitor per display (from configs/niri/.../outputs.kdl) ├── inputs.lua # touchpad tap + natural scroll, kb us, hl.gesture ├── window-rules.lua # hl.window_rule floats for small dialogs/utilities diff --git a/configs/fwbook/hypr/conf/animations.lua b/configs/fwbook/hypr/conf/animations.lua new file mode 100644 index 0000000..581ca9a --- /dev/null +++ b/configs/fwbook/hypr/conf/animations.lua @@ -0,0 +1,13 @@ +-- ========================= +-- Animations +-- ========================= +-- niri stacks workspaces vertically (Mod+Up/Down, 3-finger vertical swipe), so +-- switch the workspace transition to a vertical slide instead of Hyprland's +-- default horizontal `slide`. Only the `workspaces` leaf is overridden; +-- workspacesIn/Out inherit it and every other animation stays on defaults. + +-- hl.animation requires an explicit bezier/spring (there is no built-in +-- "default" curve name in the Lua API), so define one first. +hl.curve("wsslide", { type = "bezier", points = { { 0.05, 0.9 }, { 0.1, 1.0 } } }) + +hl.animation({ leaf = "workspaces", enabled = true, speed = 5, bezier = "wsslide", style = "slidevert" }) diff --git a/configs/fwbook/hypr/hyprland.lua b/configs/fwbook/hypr/hyprland.lua index 676e941..5ebffbb 100644 --- a/configs/fwbook/hypr/hyprland.lua +++ b/configs/fwbook/hypr/hyprland.lua @@ -12,6 +12,7 @@ require("conf/env") require("conf/general") +require("conf/animations") require("conf/monitors") require("conf/inputs") require("conf/window-rules")