clean up niri config

This commit is contained in:
2026-02-20 00:25:50 +01:00
parent aa750df916
commit b3d5f2311f

View File

@@ -1,42 +1,30 @@
layout { layout {
blur { blur {
noise 0.1 noise 0.1
passes 3 passes 3
radius 10 radius 10
} }
gaps 5 gaps 5
background-color "transparent" background-color "transparent"
always-center-single-column always-center-single-column
center-focused-column "never" center-focused-column "never"
preset-column-widths { preset-column-widths {
proportion 0.33333 proportion 0.33333
proportion 0.5 proportion 0.5
proportion 0.66667 proportion 0.66667
} }
default-column-width {
default-column-width { proportion 0.5; } proportion 0.5
}
focus-ring { focus-ring {
off off
width 1
active-color "#ffffff33"
} }
border { border {
off off
width 1
active-color "#555"
inactive-color "#222"
} }
shadow { shadow {
off off
softness 20
spread 5
offset x=0 y=5
} }
tab-indicator { tab-indicator {
width 2 width 2
gap -5 gap -5
@@ -45,32 +33,22 @@ layout {
active-color "#fff" active-color "#fff"
inactive-color "#ffffff55" inactive-color "#ffffff55"
} }
insert-hint { insert-hint {
color "#ffffff22" color "#ffffff22"
} }
} }
//cursor {
// xcursor-theme "Plasma-Overdose"
// xcursor-size 64
//}
prefer-no-csd prefer-no-csd
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
// Sticky, non-moving wallpaper
layer-rule { layer-rule {
match namespace="^swww-daemon$" match namespace="^swww-daemon$"
place-within-backdrop true place-within-backdrop true
} }
overview { overview {
workspace-shadow { workspace-shadow {
off off
} }
} }
animations { animations {
window-open { window-open {
spring damping-ratio=1.0 stiffness=700 epsilon=0.0001 spring damping-ratio=1.0 stiffness=700 epsilon=0.0001
@@ -85,226 +63,339 @@ animations {
spring damping-ratio=1.0 stiffness=600 epsilon=0.0001 spring damping-ratio=1.0 stiffness=600 epsilon=0.0001
} }
workspace-switch { workspace-switch {
spring damping-ratio=1.0 stiffness=800 epsilon=0.00001 spring damping-ratio=1.0 stiffness=800 epsilon=1e-5
} }
horizontal-view-movement { horizontal-view-movement {
spring damping-ratio=1.0 stiffness=700 epsilon=0.0001 spring damping-ratio=1.0 stiffness=700 epsilon=0.0001
} }
} }
// Open the Firefox picture-in-picture player as floating by default
// Open the Firefox picture-in-picture player as floating by default.
window-rule { window-rule {
match app-id=r#"firefox$"# title="^Picture-in-Picture$" match app-id="firefox$" title="^Picture-in-Picture$"
open-floating true open-floating true
} }
window-rule { window-rule {
geometry-corner-radius 20 geometry-corner-radius 20
clip-to-geometry true clip-to-geometry true
} }
window-rule { window-rule {
match app-id="kitty" match app-id="kitty"
blur { blur {
on on
} }
} }
window-rule { window-rule {
match app-id="code" match app-id="code"
opacity 0.9 opacity 0.85
blur {
on
}
} }
// window-rule {
// match app-id="firefox"
// opacity 0.9
// blur {
// on
// }
// }
window-rule { window-rule {
match app-id="org.gnome.Nautilus" match app-id="org.gnome.Nautilus"
opacity 0.8 opacity 0.85
blur { blur {
on on
} }
} }
layer-rule { layer-rule {
match namespace="^quickshell-overview$" match namespace="^quickshell-overview$"
} }
binds { binds {
// Core Noctalia binds // Core Noctalia binds
Mod+Space { spawn "noctalia-shell" "ipc" "call" "launcher" "toggle"; } Mod+Space {
Mod+S { spawn "noctalia-shell" "ipc" "call" "sidePanel" "toggle"; } spawn "noctalia-shell" "ipc" "call" "launcher" "toggle"
Mod+Comma { spawn "noctalia-shell" "ipc" "call" "settings" "toggle"; } }
Mod+Comma {
spawn "noctalia-shell" "ipc" "call" "settings" "toggle"
}
// Audio controls // Audio controls
XF86AudioRaiseVolume { spawn "noctalia-shell" "ipc" "call" "volume" "increase"; } XF86AudioRaiseVolume {
XF86AudioLowerVolume { spawn "noctalia-shell" "ipc" "call" "volume" "decrease"; } spawn "noctalia-shell" "ipc" "call" "volume" "increase"
XF86AudioMute { spawn "noctalia-shell" "ipc" "call" "volume" "muteOutput"; } }
XF86AudioLowerVolume {
spawn "noctalia-shell" "ipc" "call" "volume" "decrease"
}
XF86AudioMute {
spawn "noctalia-shell" "ipc" "call" "volume" "muteOutput"
}
// Brightness controls // Brightness controls
XF86MonBrightnessUp { spawn "noctalia-shell" "ipc" "call" "brightness" "increase"; } XF86MonBrightnessUp {
XF86MonBrightnessDown { spawn "noctalia-shell" "ipc" "call" "brightness" "decrease"; } spawn "noctalia-shell" "ipc" "call" "brightness" "increase"
}
XF86MonBrightnessDown {
spawn "noctalia-shell" "ipc" "call" "brightness" "decrease"
}
// Utility shortcuts // Utility shortcuts
//Mod+V { spawn "noctalia-shell" "ipc" "call" "launcher" "clipboard"; } Mod+L {
//Mod+C { spawn "noctalia-shell" "ipc" "call" "launcher" "calculator"; } spawn "noctalia-shell" "ipc" "call" "lockScreen" "lock"
Mod+L { spawn "noctalia-shell" "ipc" "call" "lockScreen" "lock"; } }
// Mod-Shift-/, which is usually the same as Mod-?, // Mod-Shift-/, which is usually the same as Mod-?,
// shows a list of important hotkeys. // shows a list of important hotkeys.
Mod+Shift+Slash { show-hotkey-overlay; } Mod+Shift+Slash {
show-hotkey-overlay
// Suggested binds for running programs: terminal, app launcher, screen locker. }
Mod+T { spawn "kitty"; } Mod+T {
//Mod+Enter { spawn "kitty"; } spawn "kitty"
Mod+D { spawn "ignis" "toggle-window" "Launcher"; } }
//Mod+L { spawn "hyprlock"; } Mod+E {
Mod+E { spawn "nautilus"; } spawn "nautilus"
Mod+Escape { spawn "ignis" "toggle-window" "PowerMenu"; } }
Mod+I { spawn "ignis" "toggle-window" "Settings"; } XF86AudioMicMute allow-when-locked=true {
spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"
// Example volume keys mappings for PipeWire & WirePlumber. }
// The allow-when-locked=true property makes them work even when the session is locked. Mod+Q {
//XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; } close-window
//XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; } }
//XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } Mod+Left {
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } focus-column-left
}
Mod+Q { close-window; } Mod+Down {
focus-window-down
Mod+Left { focus-column-left; } }
Mod+Down { focus-window-down; } Mod+Up {
Mod+Up { focus-window-up; } focus-window-up
Mod+Right { focus-column-right; } }
Mod+Right {
Mod+Ctrl+Left { move-column-left; } focus-column-right
Mod+Ctrl+Down { move-window-down; } }
Mod+Ctrl+Up { move-window-up; } Mod+Ctrl+Left {
Mod+Ctrl+Right { move-column-right; } move-column-left
}
Mod+Home { focus-column-first; } Mod+Ctrl+Down {
Mod+End { focus-column-last; } move-window-down
Mod+Ctrl+Home { move-column-to-first; } }
Mod+Ctrl+End { move-column-to-last; } Mod+Ctrl+Up {
move-window-up
Mod+Shift+Left { focus-monitor-left; } }
Mod+Shift+Down { focus-monitor-down; } Mod+Ctrl+Right {
Mod+Shift+Up { focus-monitor-up; } move-column-right
Mod+Shift+Right { focus-monitor-right; } }
Mod+Home {
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; } focus-column-first
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; } }
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; } Mod+End {
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; } focus-column-last
}
Mod+Page_Down { focus-workspace-down; } Mod+Ctrl+Home {
Mod+Page_Up { focus-workspace-up; } move-column-to-first
Mod+Ctrl+Page_Down { move-column-to-workspace-down; } }
Mod+Ctrl+Page_Up { move-column-to-workspace-up; } Mod+Ctrl+End {
move-column-to-last
Mod+Shift+Page_Down { move-workspace-down; } }
Mod+Shift+Page_Up { move-workspace-up; } Mod+Shift+Left {
focus-monitor-left
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; } }
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; } Mod+Shift+Down {
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; } focus-monitor-down
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; } }
Mod+Shift+Up {
Mod+WheelScrollRight { focus-column-right; } focus-monitor-up
Mod+WheelScrollLeft { focus-column-left; } }
Mod+Ctrl+WheelScrollRight { move-column-right; } Mod+Shift+Right {
Mod+Ctrl+WheelScrollLeft { move-column-left; } focus-monitor-right
}
Mod+Shift+Ctrl+Left {
move-column-to-monitor-left
}
Mod+Shift+Ctrl+Down {
move-column-to-monitor-down
}
Mod+Shift+Ctrl+Up {
move-column-to-monitor-up
}
Mod+Shift+Ctrl+Right {
move-column-to-monitor-right
}
Mod+Page_Down {
focus-workspace-down
}
Mod+Page_Up {
focus-workspace-up
}
Mod+Ctrl+Page_Down {
move-column-to-workspace-down
}
Mod+Ctrl+Page_Up {
move-column-to-workspace-up
}
Mod+Shift+Page_Down {
move-workspace-down
}
Mod+Shift+Page_Up {
move-workspace-up
}
Mod+WheelScrollDown cooldown-ms=150 {
focus-workspace-down
}
Mod+WheelScrollUp cooldown-ms=150 {
focus-workspace-up
}
Mod+Ctrl+WheelScrollDown cooldown-ms=150 {
move-column-to-workspace-down
}
Mod+Ctrl+WheelScrollUp cooldown-ms=150 {
move-column-to-workspace-up
}
Mod+WheelScrollRight {
focus-column-right
}
Mod+WheelScrollLeft {
focus-column-left
}
Mod+Ctrl+WheelScrollRight {
move-column-right
}
Mod+Ctrl+WheelScrollLeft {
move-column-left
}
// Usually scrolling up and down with Shift in applications results in // Usually scrolling up and down with Shift in applications results in
// horizontal scrolling; these binds replicate that. // horizontal scrolling; these binds replicate that.
Mod+Shift+WheelScrollDown { focus-column-right; } Mod+Shift+WheelScrollDown {
Mod+Shift+WheelScrollUp { focus-column-left; } focus-column-right
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; } }
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; } Mod+Shift+WheelScrollUp {
focus-column-left
Mod+1 { focus-workspace 1; } }
Mod+2 { focus-workspace 2; } Mod+Ctrl+Shift+WheelScrollDown {
Mod+3 { focus-workspace 3; } move-column-right
Mod+4 { focus-workspace 4; } }
Mod+5 { focus-workspace 5; } Mod+Ctrl+Shift+WheelScrollUp {
Mod+6 { focus-workspace 6; } move-column-left
Mod+7 { focus-workspace 7; } }
Mod+8 { focus-workspace 8; } Mod+1 {
Mod+9 { focus-workspace 9; } focus-workspace 1
Mod+Ctrl+1 { move-column-to-workspace 1; } }
Mod+Ctrl+2 { move-column-to-workspace 2; } Mod+2 {
Mod+Ctrl+3 { move-column-to-workspace 3; } focus-workspace 2
Mod+Ctrl+4 { move-column-to-workspace 4; } }
Mod+Ctrl+5 { move-column-to-workspace 5; } Mod+3 {
Mod+Ctrl+6 { move-column-to-workspace 6; } focus-workspace 3
Mod+Ctrl+7 { move-column-to-workspace 7; } }
Mod+Ctrl+8 { move-column-to-workspace 8; } Mod+4 {
Mod+Ctrl+9 { move-column-to-workspace 9; } focus-workspace 4
}
Mod+BracketLeft { consume-or-expel-window-left; } Mod+5 {
Mod+BracketRight { consume-or-expel-window-right; } focus-workspace 5
}
// Consume one window from the right to the bottom of the focused column. Mod+6 {
//Mod+Comma { consume-window-into-column; } focus-workspace 6
}
Mod+7 {
focus-workspace 7
}
Mod+8 {
focus-workspace 8
}
Mod+9 {
focus-workspace 9
}
Mod+Ctrl+1 {
move-column-to-workspace 1
}
Mod+Ctrl+2 {
move-column-to-workspace 2
}
Mod+Ctrl+3 {
move-column-to-workspace 3
}
Mod+Ctrl+4 {
move-column-to-workspace 4
}
Mod+Ctrl+5 {
move-column-to-workspace 5
}
Mod+Ctrl+6 {
move-column-to-workspace 6
}
Mod+Ctrl+7 {
move-column-to-workspace 7
}
Mod+Ctrl+8 {
move-column-to-workspace 8
}
Mod+Ctrl+9 {
move-column-to-workspace 9
}
Mod+BracketLeft {
consume-or-expel-window-left
}
Mod+BracketRight {
consume-or-expel-window-right
}
// Expel the bottom window from the focused column to the right. // Expel the bottom window from the focused column to the right.
Mod+Period { expel-window-from-column; } Mod+Period {
expel-window-from-column
Mod+R { switch-preset-column-width; } }
Mod+Shift+R { switch-preset-window-height; } Mod+R {
Mod+Ctrl+R { reset-window-height; } switch-preset-column-width
Mod+F { maximize-column; } }
Mod+Shift+F { fullscreen-window; } Mod+Shift+R {
Mod+C { center-column; } switch-preset-window-height
// Mod+W { toggle-column-tabbed-display; } }
Mod+Ctrl+R {
Mod+Minus { set-column-width "-10%"; } reset-window-height
Mod+Equal { set-column-width "+10%"; } }
Mod+F {
maximize-column
}
Mod+Shift+F {
fullscreen-window
}
Mod+C {
center-column
}
Mod+Minus {
set-column-width "-10%"
}
Mod+Equal {
set-column-width "+10%"
}
// Finer height adjustments when in column with other windows. // Finer height adjustments when in column with other windows.
Mod+Shift+Minus { set-window-height "-10%"; } Mod+Shift+Minus {
Mod+Shift+Equal { set-window-height "+10%"; } set-window-height "-10%"
}
Mod+Shift+Equal {
set-window-height "+10%"
}
// Move the focused window between the floating and the tiling layout. // Move the focused window between the floating and the tiling layout.
Mod+V { toggle-window-floating; } Mod+V {
Mod+Shift+V { switch-focus-between-floating-and-tiling; } toggle-window-floating
}
Mod+Shift+S { screenshot; } Mod+Shift+V {
Ctrl+Print { screenshot-screen; } switch-focus-between-floating-and-tiling
Alt+Print { screenshot-window; } }
Mod+Shift+S {
Mod+Shift+Alt+R { spawn "ignis" "run-command" "recorder-record-screen"; } screenshot
Mod+Alt+R { spawn "ignis" "run-command" "recorder-record-portal"; } }
Ctrl+Shift+Escape { spawn "missioncenter"; } Ctrl+Print {
screenshot-screen
}
Alt+Print {
screenshot-window
}
Ctrl+Shift+Escape {
spawn "missioncenter"
}
} }
hotkey-overlay { hotkey-overlay {
skip-at-startup skip-at-startup
} }
input { input {
touchpad { touchpad {
tap tap
natural-scroll natural-scroll
} }
keyboard { keyboard {
xkb { xkb {
layout "pl" layout "pl"
} }
} }
} }
output "eDP-1" { output "eDP-1" {
mode "2880x1800@120.000" mode "2880x1800@120.000"
//mode "1440x900@120.000"
//scale 1.0
scale 2.0 scale 2.0
} }
//spawn-at-startup "ignis" "init"
spawn-at-startup "swww-daemon" spawn-at-startup "swww-daemon"
spawn-at-startup "kanshi" spawn-at-startup "kanshi"
spawn-at-startup "noctalia-shell" spawn-at-startup "noctalia-shell"