Update .config/niri/config.kdl
This commit is contained in:
parent
33841ea15f
commit
105f69edf8
@ -1,62 +1,93 @@
|
|||||||
// Set the "Mod" key. "Mod4" is usually the Super/Windows key.
|
spawn-at-startup "waybar"
|
||||||
mod "Mod4"
|
|
||||||
|
|
||||||
// --- Autostart Programs ---
|
layout {
|
||||||
// Start the notification daemon when Niri starts.
|
gaps 16
|
||||||
exec-on-startup "swaync"
|
preset-column-widths {
|
||||||
|
proportion 0.33333
|
||||||
// --- Essential Keybindings ---
|
proportion 0.5
|
||||||
bind "Mod+Return" {
|
proportion 0.66667
|
||||||
// Launch your terminal (kitty)
|
}
|
||||||
spawn "kitty"
|
default-column-width { proportion 0.33333; }
|
||||||
|
focus-ring {
|
||||||
|
width 4
|
||||||
|
active-color "#7fc8ff"
|
||||||
|
inactive-color "#505050"
|
||||||
|
}
|
||||||
|
border {
|
||||||
|
off
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bind "Mod+d" {
|
binds {
|
||||||
// Launch your application launcher (wofi)
|
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||||
spawn "wofi --show drun"
|
Mod+T hotkey-overlay-title="Open a Terminal: ghostty" { spawn "ghostty"; }
|
||||||
}
|
Mod+D hotkey-overlay-title="Run an Application: wofi" { spawn "wofi --show drun"; }
|
||||||
|
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||||
bind "Mod+q" {
|
|
||||||
// Close the focused window
|
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+"; }
|
||||||
close-window
|
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; }
|
||||||
}
|
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
|
||||||
|
XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
|
||||||
// --- Niri Column Management ---
|
|
||||||
bind "Mod+h" { focus-column "left" }
|
Mod+O repeat=false { toggle-overview; }
|
||||||
bind "Mod+l" { focus-column "right" }
|
Mod+Q repeat=false { close-window; }
|
||||||
bind "Mod+Shift+h" { move-window-to-column "left" }
|
|
||||||
bind "Mod+Shift+l" { move-window-to-column "right" }
|
Mod+Left { focus-column-left; }
|
||||||
|
Mod+Down { focus-window-down; }
|
||||||
// --- Niri Window Management ---
|
Mod+Up { focus-window-up; }
|
||||||
bind "Mod+j" { focus-window "down" }
|
Mod+Right { focus-column-right; }
|
||||||
bind "Mod+k" { focus-window "up" }
|
Mod+H { focus-column-left; }
|
||||||
bind "Mod+Shift+j" { move-window "down" }
|
Mod+J { focus-window-down; }
|
||||||
bind "Mod+Shift+k" { move-window "up" }
|
Mod+K { focus-window-up; }
|
||||||
|
Mod+L { focus-column-right; }
|
||||||
// --- Utilities ---
|
|
||||||
bind "Mod+x" {
|
Mod+Ctrl+Left { move-column-left; }
|
||||||
// Launch the logout menu (wlogout)
|
Mod+Ctrl+Down { move-window-down; }
|
||||||
spawn "wlogout"
|
Mod+Ctrl+Up { move-window-up; }
|
||||||
}
|
Mod+Ctrl+Right { move-column-right; }
|
||||||
|
Mod+Ctrl+H { move-column-left; }
|
||||||
bind "Mod+l" {
|
Mod+Ctrl+J { move-window-down; }
|
||||||
// Lock the screen
|
Mod+Ctrl+K { move-window-up; }
|
||||||
spawn "swaylock-effects"
|
Mod+Ctrl+L { move-column-right; }
|
||||||
}
|
|
||||||
|
Mod+Home { focus-column-first; }
|
||||||
bind "Print" {
|
|
||||||
// Screenshot the entire screen
|
Mod+Page_Down { focus-workspace-down; }
|
||||||
spawn "grim ~/Pictures/Screenshots/$(date +%s).png"
|
Mod+Page_Up { focus-workspace-up; }
|
||||||
}
|
Mod+U { focus-workspace-down; }
|
||||||
|
Mod+I { focus-workspace-up; }
|
||||||
bind "Mod+Print" {
|
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
||||||
// Screenshot a selected area
|
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
||||||
spawn "grim -g \"$(slurp)\" ~/Pictures/Screenshots/$(date +%s).png"
|
Mod+Ctrl+U { move-column-to-workspace-down; }
|
||||||
}
|
Mod+Ctrl+I { move-column-to-workspace-up; }
|
||||||
|
|
||||||
// --- Set your wallpaper and background ---
|
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||||
// Make sure to replace "pywallpaper.jpg" with your actual wallpaper file.
|
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||||
output * {
|
|
||||||
background-color "#1e1e2e" // A dark fallback color
|
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||||
background-image "~/wallpapers/pywallpaper.jpg" fit
|
Mod+BracketRight { consume-or-expel-window-right; }
|
||||||
|
|
||||||
|
Mod+R { switch-preset-column-width; }
|
||||||
|
Mod+Shift+R { switch-preset-window-height; }
|
||||||
|
Mod+Ctrl+R { reset-window-height; }
|
||||||
|
Mod+F { maximize-column; }
|
||||||
|
Mod+Shift+F { fullscreen-window; }
|
||||||
|
|
||||||
|
Mod+C { center-column; }
|
||||||
|
Mod+Ctrl+C { center-visible-columns; }
|
||||||
|
|
||||||
|
Mod+Minus { set-column-width "-10%"; }
|
||||||
|
Mod+Equal { set-column-width "+10%"; }
|
||||||
|
Mod+Shift+Minus { set-window-height "-10%"; }
|
||||||
|
Mod+Shift+Equal { set-window-height "+10%"; }
|
||||||
|
|
||||||
|
Mod+W { toggle-column-tabbed-display; }
|
||||||
|
Mod+Space { switch-layout "next"; }
|
||||||
|
Mod+Shift+Space { switch-layout "prev"; }
|
||||||
|
|
||||||
|
Print { screenshot; }
|
||||||
|
Ctrl+Print { screenshot-screen; }
|
||||||
|
Alt+Print { screenshot-window; }
|
||||||
|
|
||||||
|
Mod+Shift+P { power-off-monitors; }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user