265 lines
No EOL
7.8 KiB
Text
265 lines
No EOL
7.8 KiB
Text
// This config is in the KDL format: https://kdl.dev
|
|
// "/-" comments out the following node.
|
|
// Check the wiki for a full description of the configuration:
|
|
// https://yalter.github.io/niri/Configuration:-Introduction
|
|
|
|
input {
|
|
keyboard {
|
|
xkb {
|
|
layout "de"
|
|
variant "neo_qwertz"
|
|
}
|
|
|
|
numlock
|
|
}
|
|
|
|
touchpad {
|
|
tap
|
|
natural-scroll
|
|
scroll-factor 0.8
|
|
accel-speed 0.2
|
|
}
|
|
|
|
focus-follows-mouse max-scroll-amount="50%"
|
|
}
|
|
|
|
output "eDP-1" {
|
|
mode "2880x1920@120"
|
|
|
|
scale 1.5
|
|
|
|
transform "normal"
|
|
}
|
|
|
|
layout {
|
|
gaps 5
|
|
|
|
center-focused-column "never"
|
|
|
|
preset-column-widths {
|
|
proportion 0.66667
|
|
}
|
|
|
|
default-column-width { proportion 0.5; }
|
|
|
|
focus-ring {
|
|
width 1
|
|
|
|
inactive-color "#595959aa"
|
|
|
|
active-gradient from="#33ccffee" to="#00ff99ee" angle=45
|
|
}
|
|
|
|
border {
|
|
off
|
|
|
|
width 4
|
|
active-color "#ffc87f"
|
|
inactive-color "#505050"
|
|
|
|
urgent-color "#9b0000"
|
|
|
|
}
|
|
}
|
|
|
|
spawn-at-startup "nm-applet &"
|
|
spawn-at-startup "sh" "-c" "wl-paste --watch cliphist -max-items 50 store"
|
|
|
|
hotkey-overlay {
|
|
skip-at-startup
|
|
}
|
|
|
|
prefer-no-csd
|
|
|
|
screenshot-path "~/Pictures/screenshots/%Y-%m-%d_%H-%M-%S.png"
|
|
|
|
window-rule {
|
|
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
|
default-column-width {}
|
|
}
|
|
|
|
// Open the Firefox picture-in-picture player as floating by default.
|
|
window-rule {
|
|
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
|
match title="Welcome to ((IntelliJ IDEA)|PyCharm|RustRover|GoLand|DataGrip|(Android Studio))"
|
|
open-floating true
|
|
}
|
|
|
|
window-rule {
|
|
match app-id=r#"Bitwarden$"#
|
|
|
|
block-out-from "screen-capture"
|
|
}
|
|
|
|
window-rule {
|
|
geometry-corner-radius 3
|
|
clip-to-geometry true
|
|
}
|
|
|
|
workspace "chat"
|
|
|
|
window-rule {
|
|
match at-startup=true app-id=r#"^Signal$"#
|
|
match at-startup=true app-id=r#"^Telegram$"#
|
|
match at-startup=true app-id=r#"^Vesktop$"#
|
|
match at-startup=true app-id=r#"^Element$"#
|
|
open-on-workspace "chat"
|
|
}
|
|
|
|
spawn-at-startup "signal-desktop"
|
|
spawn-at-startup "Telegram"
|
|
spawn-at-startup "element-desktop"
|
|
spawn-at-startup "vesktop"
|
|
|
|
workspace "browser"
|
|
|
|
window-rule {
|
|
match at-startup=true app-id=r#"^firefox$"#
|
|
open-on-workspace "browser"
|
|
}
|
|
|
|
spawn-at-startup "firefox"
|
|
|
|
switch-events {
|
|
lid-close {
|
|
spawn "systemctl hybrid-sleep";
|
|
}
|
|
}
|
|
|
|
binds {
|
|
Mod+Q hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; }
|
|
Mod+E hotkey-overlay-title="Open File Manager" { spawn "nautilus"; }
|
|
Super+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
|
|
|
Mod+Space { spawn-sh "rofi -show drun"; }
|
|
Mod+Period { spawn-sh "rofimoji -a copy -s neutral"; }
|
|
Mod+X { spawn-sh "cliphist list | rofi -dmenu | cliphist decode | wl-copy"; }
|
|
|
|
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+"; }
|
|
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"; }
|
|
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"; }
|
|
|
|
XF86AudioPlay allow-when-locked=true { spawn-sh "playerctl plaswaylocky-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"; }
|
|
|
|
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+5%"; }
|
|
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "5%-"; }
|
|
|
|
Mod+O repeat=false { toggle-overview; }
|
|
|
|
Mod+W 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+Shift+H { focus-column-left; }
|
|
Mod+Shift+J { focus-window-or-workspace-down; }
|
|
Mod+Shift+K { focus-window-or-workspace-up; }
|
|
Mod+Shift+L { focus-column-right; }
|
|
|
|
Mod+Ctrl+Left { move-column-left; }
|
|
Mod+Ctrl+Down { move-window-down; }
|
|
Mod+Ctrl+Up { move-window-up; }
|
|
Mod+Ctrl+Right { move-column-right; }
|
|
Mod+Ctrl+H { move-column-left; }
|
|
Mod+Ctrl+J { move-window-down; }
|
|
Mod+Ctrl+K { move-window-up; }
|
|
Mod+Ctrl+L { move-column-right; }
|
|
|
|
Mod+Home { focus-column-first; }
|
|
Mod+End { focus-column-last; }
|
|
Mod+Ctrl+Home { move-column-to-first; }
|
|
Mod+Ctrl+End { move-column-to-last; }
|
|
|
|
Mod+Page_Down { focus-workspace-down; }
|
|
Mod+Page_Up { focus-workspace-up; }
|
|
Mod+U { focus-workspace-down; }
|
|
Mod+I { focus-workspace-up; }
|
|
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
|
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
|
Mod+Ctrl+U { move-column-to-workspace-down; }
|
|
Mod+Ctrl+I { move-column-to-workspace-up; }
|
|
|
|
Mod+Shift+Page_Down { move-workspace-down; }
|
|
Mod+Shift+Page_Up { move-workspace-up; }
|
|
Mod+Shift+U { move-workspace-down; }
|
|
Mod+Shift+I { 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; }
|
|
|
|
Mod+Shift+WheelScrollDown { focus-column-right; }
|
|
Mod+Shift+WheelScrollUp { focus-column-left; }
|
|
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
|
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
|
|
|
Mod+1 { focus-workspace 1; }
|
|
Mod+2 { focus-workspace "browser"; }
|
|
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 "chat"; }
|
|
Mod+0 { focus-workspace 10; }
|
|
Mod+Shift+1 { move-column-to-workspace 1; }
|
|
Mod+Shift+2 { move-column-to-workspace "browser"; }
|
|
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 "chat"; }
|
|
Mod+Shift+0 { move-column-to-workspace 10; }
|
|
|
|
Mod+Tab { focus-workspace-previous; }
|
|
|
|
Mod+Comma { consume-window-into-column; }
|
|
|
|
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+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+T { toggle-column-tabbed-display; }
|
|
|
|
Mod+Shift+S { screenshot; }
|
|
Print { screenshot-screen; }
|
|
Alt+Print { screenshot-window; }
|
|
|
|
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
|
|
|
Mod+Shift+M { quit; }
|
|
Ctrl+Alt+Delete { quit; }
|
|
|
|
Mod+Shift+P { power-off-monitors; }
|
|
} |