From c5ffbd29ab193e0e0cc2866699c5dc00415df687 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Fri, 28 Aug 2026 10:52:19 -0400 Subject: [PATCH] feat(config): add hyprglass config, guard scrolloverview plugin, and fix fish alias path --- dot_config/fish/conf.d/20-aliases.fish | 2 +- dot_config/hypr/bindings.lua | 44 ++++++++++++++------------ dot_config/hypr/looknfeel.lua | 39 +++++++++++++++++++++++ 3 files changed, 63 insertions(+), 22 deletions(-) diff --git a/dot_config/fish/conf.d/20-aliases.fish b/dot_config/fish/conf.d/20-aliases.fish index 563343e..0bcc271 100644 --- a/dot_config/fish/conf.d/20-aliases.fish +++ b/dot_config/fish/conf.d/20-aliases.fish @@ -5,7 +5,7 @@ # Editors / file managers alias e nvim alias e.f 'cd ~/.local/share/chezmoi/dot_config/fish && yazi' -alias e.h 'cd ~/.local/share/chezmoi/dot_config/herdr && yazi' +alias e.h 'cd ~/.local/share/chezmoi/dot_config/hypr && yazi' alias e.k 'yazi ~/.local/share/chezmoi/dot_config/kitty' alias e.n 'yazi ~/.local/share/chezmoi/dot_config/niri' alias e.y 'yazi ~/.local/share/chezmoi/dot_config/yazi' diff --git a/dot_config/hypr/bindings.lua b/dot_config/hypr/bindings.lua index 3bd042c..be5ceff 100644 --- a/dot_config/hypr/bindings.lua +++ b/dot_config/hypr/bindings.lua @@ -168,27 +168,29 @@ o.bind("SUPER + P", "Clipboard manager", "omarchy-shell shell toggle omarchy.cli -- ─── ScrollOverview plugin ────────────────────────────────────────────────── -hl.config({ - plugin = { - scrolloverview = { - gesture_distance = 300, -- how far is the "max" for the gesture - scale = 0.5, -- preferred overview scale - workspace_gap = 100, - layout = "vertical", -- vertical or horizontal - wallpaper = 2, -- 0: global only, 1: per-workspace only, 2: both - blur = true, -- blur only the main overview wallpaper - shadow = { - enabled = true, - range = 50, +if hl.plugin.scrolloverview then + hl.config({ + plugin = { + scrolloverview = { + gesture_distance = 300, -- how far is the "max" for the gesture + scale = 0.5, -- preferred overview scale + workspace_gap = 100, + layout = "vertical", -- vertical or horizontal + wallpaper = 2, -- 0: global only, 1: per-workspace only, 2: both + blur = true, -- blur only the main overview wallpaper + shadow = { + enabled = true, + range = 50, + }, }, }, - }, -}) + }) --- Omarchy puts two binds on ALT + TAB: focus next window, and reveal the --- active window on top. Both go, and the overview takes the key. Written with --- o.bind and a description, so it shows up in the keybindings menu. -hl.unbind("ALT + TAB") -o.bind("ALT + TAB", "Toggle overview", function() - hl.plugin.scrolloverview.overview("toggle all") -end) + -- Omarchy puts two binds on ALT + TAB: focus next window, and reveal the + -- active window on top. Both go, and the overview takes the key. Written with + -- o.bind and a description, so it shows up in the keybindings menu. + hl.unbind("ALT + TAB") + o.bind("ALT + TAB", "Toggle overview", function() + hl.plugin.scrolloverview.overview("toggle all") + end) +end diff --git a/dot_config/hypr/looknfeel.lua b/dot_config/hypr/looknfeel.lua index a86d053..b0e70b5 100644 --- a/dot_config/hypr/looknfeel.lua +++ b/dot_config/hypr/looknfeel.lua @@ -48,3 +48,42 @@ -- column_width = 0.97, -- }, -- }) + +if hl.plugin.hyprglass then + local hg = hl.plugin.hyprglass + + hg.config({ + default_theme = "dark", + default_preset = "clear", + tint_color = 0x8899aa22, + + brightness = 0.9, + dark = { brightness = 0.82 }, + light = { adaptive_boost = 0.5 }, + + layers = { enabled = 1 }, + }) + + -- Layer surfaces: each call whitelists the namespace and configures it + hg.layer("waybar", { preset = "subtle", mask_threshold = 0.05 }) + hg.layer("swaync") + hg.layer("quickshell:bezel", { preset = "ui", mask_threshold = 0.3 }) + hg.layer("debug-panel", { exclude = true }) + + -- Presets + hg.preset("clear", { + glass_opacity = 0.8, + blur_strength = 1.5, + dark = { brightness = 0.7 }, + light = { brightness = 1.2 }, + }) + + hg.preset("contrasted", { + inherits = "high_contrast", + contrast = 1.2, + adaptive_dim = 1.5, + dark = { tint_color = 0x02142aa9 }, + }) +end + +