niri: Use caelestia quickshell

This commit is contained in:
2025-12-07 15:11:56 +01:00
parent 67f7129dac
commit 5e7c193a28
5 changed files with 284 additions and 21 deletions

View File

@ -73,6 +73,18 @@ layout {
gaps 12
{% end %}
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
// You can think of them as a kind of outer gaps. They are set in logical pixls.
// Left and right struts will cause the next window to the side to always be visible.
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
// layer-shell panels and regular gaps.
struts {
left -12
right -12
top -12
bottom -12
}
// When to center a column when changing focus, options are:
// - "never", default behavior, focusing an off-screen column will keep at the left
// or right edge of the screen.
@ -113,26 +125,11 @@ layout {
// active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view"
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
}
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
// You can think of them as a kind of outer gaps. They are set in logical pixls.
// Left and right struts will cause the next window to the side to always be visible.
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
// layer-shell panels and regular gaps.
struts {
// left 64
// right 64
// top 64
// bottom 64
}
}
spawn-at-startup "hyprpaper"
spawn-at-startup "eww" "daemon"
spawn-at-startup "eww" "open" "bar0"
spawn-at-startup "eww" "open" "bar1"
spawn-at-startup "swayidle" "-w" // ~/.config/swayidle/config
spawn-at-startup "swaync" // ~/.config/swaync
spawn-at-startup "qs" "-p" "/etc/quickshell/niri-caelestia-shell"
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
// If the client will specifically ask for CSD, the request will be honored.
@ -259,7 +256,7 @@ vec4 close_color(vec3 coords_geo, vec3 size_geo) {
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
window-rule {
geometry-corner-radius 16
geometry-corner-radius 22
clip-to-geometry true
}
@ -337,9 +334,11 @@ binds {
// shows a list of important hotkeys.
Mod+Shift+Plus { show-hotkey-overlay; }
Mod+Return { spawn "alacritty"; }
Mod+D { spawn "fuzzel"; }
Mod+Plus { spawn "loginctl lock-session"; }
Mod+Return { spawn "ghostty"; }
Mod+Plus { spawn "loginctl" "lock-session"; }
// TODO: why do i have to use spawn-sh?
Mod+D { spawn "qs" "-p" "/etc/quickshell/niri-caelestia-shell" "ipc" "call" "drawers" "toggle" "launcher"; }
// You can also use a shell:
// Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; }