63 lines
1.5 KiB
Plaintext
63 lines
1.5 KiB
Plaintext
// Set the "Mod" key. "Mod4" is usually the Super/Windows key.
|
|
mod "Mod4"
|
|
|
|
// --- Autostart Programs ---
|
|
// Start the notification daemon when Niri starts.
|
|
exec-on-startup "swaync"
|
|
|
|
// --- Essential Keybindings ---
|
|
bind "Mod+Return" {
|
|
// Launch your terminal (kitty)
|
|
spawn "kitty"
|
|
}
|
|
|
|
bind "Mod+d" {
|
|
// Launch your application launcher (wofi)
|
|
spawn "wofi --show drun"
|
|
}
|
|
|
|
bind "Mod+q" {
|
|
// Close the focused window
|
|
close-window
|
|
}
|
|
|
|
// --- Niri Column Management ---
|
|
bind "Mod+h" { focus-column "left" }
|
|
bind "Mod+l" { focus-column "right" }
|
|
bind "Mod+Shift+h" { move-window-to-column "left" }
|
|
bind "Mod+Shift+l" { move-window-to-column "right" }
|
|
|
|
// --- Niri Window Management ---
|
|
bind "Mod+j" { focus-window "down" }
|
|
bind "Mod+k" { focus-window "up" }
|
|
bind "Mod+Shift+j" { move-window "down" }
|
|
bind "Mod+Shift+k" { move-window "up" }
|
|
|
|
// --- Utilities ---
|
|
bind "Mod+x" {
|
|
// Launch the logout menu (wlogout)
|
|
spawn "wlogout"
|
|
}
|
|
|
|
bind "Mod+l" {
|
|
// Lock the screen
|
|
spawn "swaylock-effects"
|
|
}
|
|
|
|
bind "Print" {
|
|
// Screenshot the entire screen
|
|
spawn "grim ~/Pictures/Screenshots/$(date +%s).png"
|
|
}
|
|
|
|
bind "Mod+Print" {
|
|
// Screenshot a selected area
|
|
spawn "grim -g \"$(slurp)\" ~/Pictures/Screenshots/$(date +%s).png"
|
|
}
|
|
|
|
// --- Set your wallpaper and background ---
|
|
// Make sure to replace "pywallpaper.jpg" with your actual wallpaper file.
|
|
output * {
|
|
background-color "#1e1e2e" // A dark fallback color
|
|
background-image "~/wallpapers/pywallpaper.jpg" fit
|
|
}
|