mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
feat(config): add hyprglass config, guard scrolloverview plugin, and fix fish alias path
This commit is contained in:
1 parent
bd6844e949
commit
c5ffbd29ab
3 files changed
+63
-22
No files matched your search
@@ -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'
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user