niri
This commit is contained in:
@@ -0,0 +1,172 @@
|
||||
binds {
|
||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||
|
||||
// Application related
|
||||
Mod+RETURN hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; }
|
||||
Mod+D hotkey-overlay-title="Run an Application: rofi" { spawn-sh "rofi -show drun"; }
|
||||
Super+Shift+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||
Mod+Shift+F hotkey-overlay-title="Open a web browser: Librewolf" { spawn "librewolf"; }
|
||||
Mod+Shift+D hotkey-overlay-title="Open a web browser: Mullvad Browser" { spawn "mullvad-browser"; }
|
||||
Mod+E hotkey-overlay-title="Open a file explorer: Nautilus" { spawn "nautilus"; }
|
||||
Mod+P hotkey-overlay-title="Open a volume control center: Pwvucontrol" { spawn "pwvucontrol"; }
|
||||
Mod+B hotkey-overlay-title="Open a bluetooth control center: overskride" { spawn "overskride"; }
|
||||
|
||||
// Volume control
|
||||
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"; }
|
||||
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"; }
|
||||
|
||||
// Player control
|
||||
XF86AudioPlay allow-when-locked=true { spawn-sh "playerctl play-pause"; }
|
||||
XF86AudioStop allow-when-locked=true { spawn-sh "playerctl stop"; }
|
||||
XF86AudioPrev allow-when-locked=true { spawn-sh "playerctl previous"; }
|
||||
XF86AudioNext allow-when-locked=true { spawn-sh "playerctl next"; }
|
||||
|
||||
// Brightness control
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+10%"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%-"; }
|
||||
|
||||
Mod+Q repeat=false { toggle-overview; }
|
||||
|
||||
Mod+Shift+Q repeat=false { close-window; }
|
||||
|
||||
Mod+Left { focus-column-left; }
|
||||
Mod+Down { focus-window-down; }
|
||||
Mod+Up { focus-window-up; }
|
||||
Mod+Right { focus-column-right; }
|
||||
Mod+H { focus-column-left; }
|
||||
Mod+J { focus-window-down; }
|
||||
Mod+K { focus-window-up; }
|
||||
Mod+L { focus-column-right; }
|
||||
|
||||
Mod+Shift+Left { move-column-left; }
|
||||
Mod+Shift+Down { move-window-down; }
|
||||
Mod+Shift+Up { move-window-up; }
|
||||
Mod+Shift+Right { move-column-right; }
|
||||
Mod+Shift+H { move-column-left; }
|
||||
Mod+Shift+J { move-window-down; }
|
||||
Mod+Shift+K { move-window-up; }
|
||||
Mod+Shift+L { move-column-right; }
|
||||
|
||||
Mod+Home { focus-column-first; }
|
||||
Mod+End { focus-column-last; }
|
||||
Mod+Shift+Home { move-column-to-first; }
|
||||
Mod+Shift+End { move-column-to-last; }
|
||||
|
||||
Mod+Ctrl+Left { focus-monitor-left; }
|
||||
Mod+Ctrl+Down { focus-monitor-down; }
|
||||
Mod+Ctrl+Up { focus-monitor-up; }
|
||||
Mod+Ctrl+Right { focus-monitor-right; }
|
||||
Mod+Ctrl+H { focus-monitor-left; }
|
||||
Mod+Ctrl+J { focus-monitor-down; }
|
||||
Mod+Ctrl+K { focus-monitor-up; }
|
||||
Mod+Ctrl+L { 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+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||
|
||||
Mod+Page_Down { focus-workspace-down; }
|
||||
Mod+Page_Up { focus-workspace-up; }
|
||||
Mod+U { focus-workspace-down; }
|
||||
Mod+I { focus-workspace-up; }
|
||||
Mod+Shift+Page_Down { move-column-to-workspace-down; }
|
||||
Mod+Shift+Page_Up { move-column-to-workspace-up; }
|
||||
Mod+Shift+U { move-column-to-workspace-down; }
|
||||
Mod+Shift+I { move-column-to-workspace-up; }
|
||||
|
||||
Mod+Ctrl+Page_Down { move-workspace-down; }
|
||||
Mod+Ctrl+Page_Up { move-workspace-up; }
|
||||
Mod+Ctrl+U { move-workspace-down; }
|
||||
Mod+Ctrl+I { move-workspace-up; }
|
||||
|
||||
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||
Mod+Shift+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
Mod+Shift+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
|
||||
Mod+WheelScrollRight { focus-column-right; }
|
||||
Mod+WheelScrollLeft { focus-column-left; }
|
||||
Mod+Shift+WheelScrollRight { move-column-right; }
|
||||
Mod+Shift+WheelScrollLeft { move-column-left; }
|
||||
|
||||
Mod+Ctrl+WheelScrollDown { focus-column-right; }
|
||||
Mod+Ctrl+WheelScrollUp { focus-column-left; }
|
||||
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||
|
||||
Mod+TouchpadScrollDown { move-workspace-down; }
|
||||
Mod+TouchpadScrollUp { move-workspace-up; }
|
||||
Mod+Shift+TouchpadScrollDown { move-column-to-workspace-down; }
|
||||
Mod+Shift+TouchpadScrollUp { move-column-to-workspace-up; }
|
||||
|
||||
Mod+1 { focus-workspace 1; }
|
||||
Mod+2 { focus-workspace 2; }
|
||||
Mod+3 { focus-workspace 3; }
|
||||
Mod+4 { focus-workspace 4; }
|
||||
Mod+5 { focus-workspace 5; }
|
||||
Mod+6 { focus-workspace 6; }
|
||||
Mod+7 { focus-workspace 7; }
|
||||
Mod+8 { focus-workspace 8; }
|
||||
Mod+9 { focus-workspace 9; }
|
||||
Mod+Shift+1 { move-column-to-workspace 1; }
|
||||
Mod+Shift+2 { move-column-to-workspace 2; }
|
||||
Mod+Shift+3 { move-column-to-workspace 3; }
|
||||
Mod+Shift+4 { move-column-to-workspace 4; }
|
||||
Mod+Shift+5 { move-column-to-workspace 5; }
|
||||
Mod+Shift+6 { move-column-to-workspace 6; }
|
||||
Mod+Shift+7 { move-column-to-workspace 7; }
|
||||
Mod+Shift+8 { move-column-to-workspace 8; }
|
||||
Mod+Shift+9 { move-column-to-workspace 9; }
|
||||
Mod+S { move-column-to-workspace 9; }
|
||||
|
||||
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||
Mod+BracketRight { consume-or-expel-window-right; }
|
||||
|
||||
Mod+Comma { consume-window-into-column; }
|
||||
Mod+Period { expel-window-from-column; }
|
||||
|
||||
Mod+R { switch-preset-column-width; }
|
||||
Mod+Shift+R { switch-preset-column-width-back; }
|
||||
|
||||
Mod+Ctrl+Shift+R { switch-preset-window-height; }
|
||||
Mod+Ctrl+R { reset-window-height; }
|
||||
|
||||
Mod+F { maximize-column; }
|
||||
F11 { fullscreen-window; }
|
||||
|
||||
Mod+M { maximize-window-to-edges; }
|
||||
|
||||
Mod+Ctrl+F { expand-column-to-available-width; }
|
||||
|
||||
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+V { toggle-window-floating; }
|
||||
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
||||
|
||||
Mod+W { toggle-column-tabbed-display; }
|
||||
|
||||
Print { screenshot; }
|
||||
Ctrl+Print { screenshot-screen; }
|
||||
Alt+Print { screenshot-window; }
|
||||
|
||||
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||
|
||||
Mod+Shift+E { quit; }
|
||||
|
||||
Mod+Shift+P { power-off-monitors; }
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
include "~/.config/niri/inputs.kdl"
|
||||
include "~/.config/niri/outputs.kdl"
|
||||
include "~/.config/niri/layout.kdl"
|
||||
include "~/.config/niri/window-rules.kdl"
|
||||
include "~/.config/niri/binds.kdl"
|
||||
include "~/.config/niri/startup.kdl"
|
||||
include "~/.config/niri/workspaces.kdl"
|
||||
|
||||
prefer-no-csd
|
||||
|
||||
hotkey-overlay {
|
||||
skip-at-startup
|
||||
}
|
||||
|
||||
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||
|
||||
animations {
|
||||
// Satisfied with the defaults as of 06.07.2026, my mind may change however
|
||||
}
|
||||
|
||||
cursor {
|
||||
// xcursor-theme "Catppuccin Mocha Dark"
|
||||
xcursor-size 22
|
||||
}
|
||||
|
||||
overview {
|
||||
backdrop-color "#181825"
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
layout "pl"
|
||||
variant "programmers"
|
||||
}
|
||||
repeat-rate 35
|
||||
repeat-delay 200
|
||||
numlock
|
||||
}
|
||||
|
||||
touchpad {
|
||||
tap
|
||||
drag true
|
||||
drag-lock
|
||||
dwt
|
||||
natural-scroll
|
||||
accel-profile "flat"
|
||||
scroll-method "two-finger"
|
||||
}
|
||||
|
||||
mouse {
|
||||
accel-profile "flat"
|
||||
}
|
||||
|
||||
disable-power-key-handling
|
||||
focus-follows-mouse max-scroll-amount="0%"
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
layout {
|
||||
gaps 8
|
||||
center-focused-column "never"
|
||||
preset-column-widths {
|
||||
proportion 0.33333
|
||||
proportion 0.5
|
||||
proportion 0.66667
|
||||
}
|
||||
|
||||
default-column-width { proportion 0.5; }
|
||||
|
||||
focus-ring {
|
||||
off
|
||||
}
|
||||
|
||||
border {
|
||||
on
|
||||
width 1
|
||||
active-color "#89b4fa"
|
||||
inactive-color "#6c7086"
|
||||
}
|
||||
|
||||
shadow {
|
||||
off
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
output "eDP-1" {
|
||||
mode "1920x1080@60.020"
|
||||
scale 1
|
||||
transform "normal"
|
||||
}
|
||||
|
||||
output "DP-1" {
|
||||
mode "2560x1440@143.972"
|
||||
scale 1
|
||||
variable-refresh-rate on-demand=true
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// spawn-sh-at-startup "/usr/libexec/polkit-gnome-authentication-agent-1"
|
||||
spawn-sh-at-startup "udiskie"
|
||||
spawn-sh-at-startup "swayidle"
|
||||
spawn-sh-at-startup "swaybg -m fill -i ~/nixos/wallpapers/5.jpg"
|
||||
spawn-sh-at-startup "wl-clipboard"
|
||||
@@ -0,0 +1,63 @@
|
||||
window-rule {
|
||||
geometry-corner-radius 12
|
||||
clip-to-geometry true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id=r#"librewolf$"# title="^Picture-in-Picture$"
|
||||
open-floating true
|
||||
default-column-width { fixed 800; }
|
||||
default-window-height { fixed 400; }
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="librewolf"
|
||||
open-on-workspace "1"
|
||||
open-maximized true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="Mullvad Browser"
|
||||
open-maximized true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="Mullvad VPN"
|
||||
open-floating true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="com.saivert.pwvucontrol"
|
||||
open-floating true
|
||||
default-column-width { fixed 800; }
|
||||
default-window-height { fixed 400; }
|
||||
default-floating-position x=50 y=50
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match title="overskride"
|
||||
open-floating true
|
||||
default-column-width { fixed 800; }
|
||||
default-window-height { fixed 800; }
|
||||
default-floating-position x=1050 y=50
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="org.gnome.Nautilus"
|
||||
open-floating true
|
||||
default-column-width { fixed 1000; }
|
||||
default-window-height { fixed 800; }
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="org.gnome.eog"
|
||||
open-floating true
|
||||
default-column-width { fixed 1000; }
|
||||
default-window-height { fixed 800; }
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match is-floating=true
|
||||
default-column-width { fixed 800; }
|
||||
default-window-height { fixed 400; }
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
workspace "1"{
|
||||
}
|
||||
workspace "2"{
|
||||
}
|
||||
Reference in New Issue
Block a user