normalize config for niri

This commit is contained in:
ari committed 2026-09-17 15:10:36 -04:00
1 parent e32d61fb03
commit 7c2fccf064
32 files changed
+27 -5

No files matched your search

+1
View File
@@ -0,0 +1 @@
*backup*
+24
View File
@@ -0,0 +1,24 @@
// =========================
// Niri Configuration
// =========================
// Shared configuration for multiple shell environments
// =========================
// Shared Configuration
// =========================
// General purpose configuration shared across all setups
include "shared/index.kdl"
// =========================
// Desktop Environment Selection
// =========================
// Uncomment ONE of the following to use that environment:
// For DankMaterialShell (DMS)
// include "dms/index.kdl"
include "noctalia/index.kdl"
//include "dms/binds.kdl"
include "dms/outputs.kdl"
+10
View File
@@ -0,0 +1,10 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
recent-windows {
highlight {
corner-radius 12
}
}
+35
View File
@@ -0,0 +1,35 @@
// =========================
// DMS-Specific Keybindings
// =========================
// Configuration and integrations specific to DankMaterialShell
binds {
// =========================
// DMS Launcher & Spotlight
// =========================
Mod+Space { spawn "dms" "ipc" "spotlight" "toggle"; }
// =========================
// DMS Integration
// =========================
Alt+Ctrl+Delete hotkey-overlay-title="Task Manager: Toggle" { spawn "dms" "ipc" "call" "processlist" "toggle"; }
Mod+Alt+L hotkey-overlay-title="Notifications: Clear" { spawn "dms" "ipc" "notifications" "dismissAllPopups"; }
Mod+Alt+K hotkey-overlay-title="Notifications: Toggle" { spawn "dms" "ipc" "call" "notifications" "toggle"; }
Mod+Alt+N hotkey-overlay-title="Workspace: Rename" { spawn "dms" "ipc" "workspace-rename" "toggle"; }
Mod+Alt+P hotkey-overlay-title="Clipboard: Toggle" { spawn "dms" "ipc" "call" "clipboard" "toggle"; }
Mod+Shift+Space hotkey-overlay-title="PlayerCtrl: Toggle" { spawn "playerctl" "play-pause"; }
// =========================
// DMS Media & Brightness
// =========================
Mod+Shift+Up hotkey-overlay-title="PlayerCtrl: Volume Up" { spawn "dms" "ipc" "audio" "increment" "1"; }
Mod+Shift+Down hotkey-overlay-title="PlayerCtrl: Volume Down" { spawn "dms" "ipc" "audio" "decrement" "1"; }
Mod+Shift+Right hotkey-overlay-title="PlayerCtrl: Next" { spawn "playerctl" "next"; }
Mod+Shift+Left hotkey-overlay-title="PlayerCtrl: Previous" { spawn "playerctl" "previous"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "dms" "ipc" "audio" "increment" "1"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "dms" "ipc" "audio" "decrement" "1"; }
XF86AudioMute allow-when-locked=true { spawn "dms" "ipc" "call" "audio" "mute"; }
XF86AudioMicMute allow-when-locked=true { spawn "dms" "ipc" "call" "audio" "micmute"; }
XF86MonBrightnessUp allow-when-locked=true { spawn "dms" "ipc" "call" "brightness" "increment" "10" ""; }
XF86MonBrightnessDown allow-when-locked=true { spawn "dms" "ipc" "call" "brightness" "decrement" "10" ""; }
}
+39
View File
@@ -0,0 +1,39 @@
// ! Auto-generated file. Do not edit directly.
// Remove `include "dms/colors.kdl"` from your config to override.
layout {
background-color "transparent"
focus-ring {
active-color "#ff6d00"
inactive-color "#a08d85"
urgent-color "#f2b8b5"
}
border {
active-color "#ff6d00"
inactive-color "#a08d85"
urgent-color "#f2b8b5"
}
shadow {
color "#00000070"
}
tab-indicator {
active-color "#ff6d00"
inactive-color "#a08d85"
urgent-color "#f2b8b5"
}
insert-hint {
color "#ff6d0080"
}
}
recent-windows {
highlight {
active-color "#3e2723"
urgent-color "#f2b8b5"
}
}
+10
View File
@@ -0,0 +1,10 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
cursor {
xcursor-theme "Adwaita"
xcursor-size 24
hide-when-typing
}
+6
View File
@@ -0,0 +1,6 @@
// =========================
// DMS Configuration Index
// =========================
// Configuration specific to DankMaterialShell (DMS)
include "./binds.kdl"
+23
View File
@@ -0,0 +1,23 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
layout {
gaps 4
border {
width 2
}
focus-ring {
width 2
}
}
window-rule {
geometry-corner-radius 12
clip-to-geometry true
tiled-state true
draw-border-with-background false
}
+24
View File
@@ -0,0 +1,24 @@
// Auto-generated by DMS - do not edit manually
output "DP-9" {
mode "1920x1080@74.973"
scale 1
position x=0 y=0
}
output "eDP-1" {
mode "2880x1920@120.000"
scale 2
position x=1253 y=1080
focus-at-startup
layout {
always-center-single-column
}
}
output "DP-10" {
mode "1920x1080@74.973"
scale 1
position x=1920 y=0
}
@@ -0,0 +1,55 @@
// Auto-generated by DMS - do not edit manually
output "DP-9" {
mode "1920x1080@74.973"
scale 1
position x=0 y=0
}
output "Samsung Electric Company S22R35x H4TR604392" {
mode "1920x1080@60.000"
scale 1
position x=106 y=0
}
output "eDP-1" {
mode "2256x1504@59.999"
scale 1
position x=859 y=1080
}
output "DP-10" {
mode "1920x1080@74.973"
scale 1
position x=1920 y=0
}
output "Samsung Electric Company S22R35x H4TR503886" {
mode "1920x1080@60.000"
scale 1
position x=2026 y=0
}
output "PNP(GWD) ARZOPA \\x15\\xd9F\\x1675US0000" {
mode "1920x1080@60.000"
scale 1
transform "normal"
position x=2860 y=1080
}
output "DP-2" {
mode "1920x1080@60.000"
scale 1
position x=3115 y=1504
}
output "Dell Inc. DELL SE3223Q 1WDWKK3" {
scale 2
position x=4780 y=0
}
output "Dell Inc. DELL SE3223Q 1TRXKK3" {
scale 2
position x=6700 y=0
}
@@ -0,0 +1,55 @@
// Auto-generated by DMS - do not edit manually
output "DP-9" {
mode "1920x1080@74.973"
scale 1
position x=0 y=0
}
output "Samsung Electric Company S22R35x H4TR604392" {
mode "1920x1080@60.000"
scale 1
position x=106 y=0
}
output "eDP-1" {
mode "2256x1504@59.999"
scale 1
position x=859 y=1080
}
output "DP-10" {
mode "1920x1080@74.973"
scale 1
position x=1920 y=0
}
output "Samsung Electric Company S22R35x H4TR503886" {
mode "1920x1080@60.000"
scale 1
position x=2026 y=0
}
output "PNP(GWD) ARZOPA \\x15\\xd9F\\x1675US0000" {
mode "1920x1080@60.000"
scale 1
transform "normal"
position x=2860 y=1080
}
output "DP-2" {
mode "1920x1080@60.000"
scale 1
position x=3115 y=1504
}
output "Dell Inc. DELL SE3223Q 1WDWKK3" {
scale 2
position x=4780 y=0
}
output "Dell Inc. DELL SE3223Q 1TRXKK3" {
scale 2
position x=6700 y=0
}
Whitespace-only changes.
+9
View File
@@ -0,0 +1,9 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
layer-rule {
match namespace="dms:blurwallpaper"
place-within-backdrop true
}
+27
View File
@@ -0,0 +1,27 @@
binds {
Mod+Shift+A { spawn "noctalia"; }
ALT+Tab { spawn "noctalia" "msg" "window-switcher" "toggle"; }
Mod+Space { spawn "noctalia" "msg" "panel-toggle" "launcher"; }
Mod+S { spawn "noctalia" "msg" "panel-toggle" "control-center"; }
Mod+comma { spawn "noctalia" "msg" "settings-toggle"; }
// // =========================
// // DMS Integration
// // =========================
Mod+Alt+L hotkey-overlay-title="Notifications: Clear" { spawn "noctalia" "msg" "notification-clear-active"; }
// Mod+Alt+K hotkey-overlay-title="Notifications: Toggle" { spawn "dms" "ipc" "call" "notifications" "toggle"; }
// Mod+Alt+N hotkey-overlay-title="Workspace: Rename" { spawn "dms" "ipc" "workspace-rename" "toggle"; }
// Mod+Alt+P hotkey-overlay-title="Clipboard: Toggle" { spawn "dms" "ipc" "call" "clipboard" "toggle"; }
// Mod+Shift+Space hotkey-overlay-title="PlayerCtrl: Toggle" { spawn "playerctl" "play-pause"; }
// // =========================
// // DMS Media & Brightness
// // =========================
XF86AudioRaiseVolume allow-when-locked=true { spawn "noctalia" "msg" "volume-up"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "noctalia" "msg" "volume-down"; }
XF86AudioMute allow-when-locked=true { spawn "noctalia" "msg" "volume-mute"; }
// XF86AudioMicMute allow-when-locked=true { spawn "noctalia" "msg" "call" "audio" "micmute"; }
XF86MonBrightnessUp allow-when-locked=true { spawn "noctalia" "msg" "brightness-up"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "noctalia" "msg" "brightness-down"; }
}
+2
View File
@@ -0,0 +1,2 @@
include "./binds.kdl"
include "./startup.kdl"
+1
View File
@@ -0,0 +1 @@
spawn-at-startup "noctalia"
+32
View File
@@ -0,0 +1,32 @@
#!/bin/sh
set -e
_SCREEN_RECORD_DIR="$HOME/Videos/ScreenRecordings"
mkdir -p "$_SCREEN_RECORD_DIR"
if pgrep -x "wf-recorder" > /dev/null; then
last_cmd=$(pgrep -x "wf-recorder" -a)
filepath="${last_cmd##* -f }"
filepath="${filepath%% *}"
pgrep -x "wf-recorder" && pkill -INT -x wf-recorder
notify-send -h string:wf-recorder:record -t 5000 "Finished Recording. Saved at $filepath."
echo $filepath | xclip -selection clipboard
exit 0
fi
dims=$(slurp)
notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>3</b></i></span>"
sleep 1
notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>2</b></i></span>"
sleep 1
notify-send -h string:wf-recorder:record -t 950 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>1</b></i></span>"
sleep 1
dateTime=$(date +%Y-%m-%d-%H_%M_%S)
wf-recorder --bframes max_b_frames -g "${dims}" -f $_SCREEN_RECORD_DIR/$dateTime.mp4
+10
View File
@@ -0,0 +1,10 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
recent-windows {
highlight {
corner-radius 12
}
}
+77
View File
@@ -0,0 +1,77 @@
// =========================
// Shared Keybindings
// =========================
// Common keybindings across all desktop environments
binds {
// =========================
// General
// =========================
Mod+Shift+H { show-hotkey-overlay; }
Mod+T { spawn "ghostty"; }
Mod+A { spawn "ghostty" "-e" "pi"; }
Mod+Z { spawn "flatpak" "run" "app.zen_browser.zen"; }
Mod+B { spawn "chromium"; }
Mod+E { spawn "wofi-emoji"; }
Mod+Q { close-window; }
// =========================
// Navigation
// =========================
Mod+Left { focus-column-left; }
Mod+Down { focus-workspace-down; }
Mod+Up { focus-workspace-up; }
Mod+Right { focus-column-right; }
Mod+Tab { toggle-overview; }
Mod+Shift+Tab { focus-monitor-next; }
// =========================
// Window Management
// =========================
Mod+Ctrl+Right { swap-window-right; }
Mod+Ctrl+Left { swap-window-left; }
Mod+Ctrl+Up { move-window-to-workspace-up; }
Mod+Ctrl+Down { move-window-to-workspace-down; }
Mod+W { toggle-column-tabbed-display; }
Mod+F { maximize-column; }
Mod+Shift+F { fullscreen-window; }
Mod+Ctrl+F { reset-window-height; }
Mod+V { toggle-window-floating; }
Mod+C { center-column; }
// =========================
// Resizing
// =========================
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%"; }
// =========================
// Screenshots & Recording
// =========================
Print { spawn "sh" "-c" "dms screenshot --stdout | satty -f -"; }
Mod+P { spawn "sh" "-c" "dms screenshot --stdout | satty -f -"; }
Mod+R { spawn "/home/ari/.config/niri/screen-record.sh"; }
Mod+M { spawn "nu" "~/.config/hypr/speak-selection.nu"; }
// =========================
// Misc
// =========================
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
// =========================
// Monitor Movement
// =========================
Mod+Alt+Down hotkey-overlay-title="Move to Monitor Down" { move-column-to-monitor-down; }
Mod+Alt+Left hotkey-overlay-title="Move to Monitor Left" { move-column-to-monitor-left; }
Mod+Alt+Right hotkey-overlay-title="Move to Monitor Right" { move-column-to-monitor-right; }
Mod+Alt+Up hotkey-overlay-title="Move to Monitor Up" { move-column-to-monitor-up; }
Mod+TouchpadScrollUp hotkey-overlay-title="Move Workspace to Monitor Down" { move-workspace-to-monitor-down; }
Mod+TouchpadScrollRight hotkey-overlay-title="Move Workspace to Monitor Left" { move-workspace-to-monitor-left; }
Mod+TouchpadScrollLeft hotkey-overlay-title="Move Workspace to Monitor Right" { move-workspace-to-monitor-right; }
Mod+TouchpadScrollDown hotkey-overlay-title="Move Workspace to Monitor Up" { move-workspace-to-monitor-up; }
}
+39
View File
@@ -0,0 +1,39 @@
// ! Auto-generated file. Do not edit directly.
// Remove `include "dms/colors.kdl"` from your config to override.
layout {
background-color "transparent"
focus-ring {
active-color "#ff6d00"
inactive-color "#a08d85"
urgent-color "#f2b8b5"
}
border {
active-color "#ff6d00"
inactive-color "#a08d85"
urgent-color "#f2b8b5"
}
shadow {
color "#00000070"
}
tab-indicator {
active-color "#ff6d00"
inactive-color "#a08d85"
urgent-color "#f2b8b5"
}
insert-hint {
color "#ff6d0080"
}
}
recent-windows {
highlight {
active-color "#3e2723"
urgent-color "#f2b8b5"
}
}
+10
View File
@@ -0,0 +1,10 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
cursor {
xcursor-theme "Adwaita"
xcursor-size 24
hide-when-typing
}
+68
View File
@@ -0,0 +1,68 @@
// =========================
// DMS General Configuration
// =========================
// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
input {
touchpad {
tap
natural-scroll
}
// Absolute map for the built-in panel (scale 1.5). Without this, touch
// can miss windows when logical/physical sizes diverge.
touch {
map-to-output "eDP-1"
}
}
overview {
backdrop-color "#777777"
}
environment {
QT_QPA_PLATFORM "wayland"
QT_WAYLAND_DISABLE_WINDOWDECORATION "1"
NIXOS_OZONE_WL "1"
DISPLAY ":0"
ELECTRON_OZONE_PLATFORM_HINT "auto"
}
// =========================
// Screenshots
// =========================
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
// =========================
// System Events
// =========================
switch-events {
lid-close { spawn "notify-send" "The laptop lid is closed!"; }
lid-open { spawn "notify-send" "The laptop lid is open!"; }
}
hotkey-overlay {
skip-at-startup
}
gestures {
dnd-edge-view-scroll {
trigger-width 30
delay-ms 100
max-speed 1500
}
dnd-edge-workspace-switch {
trigger-height 50
delay-ms 100
max-speed 1500
}
hot-corners {
off
}
}
debug {
honor-xdg-activation-with-invalid-serial
}
+15
View File
@@ -0,0 +1,15 @@
// =========================
// Shared Configuration Index
// =========================
// General purpose configuration shared across all DM setups
include "./general.kdl"
include "./outputs.kdl"
include "./cursor.kdl"
include "./colors.kdl"
include "./layout.kdl"
include "./alttab.kdl"
include "./wpblur.kdl"
include "./windowrules.kdl"
include "./binds.kdl"
include "./startup.kdl"
+17
View File
@@ -0,0 +1,17 @@
layout {
gaps 5
border {
width 2
}
focus-ring {
width 2
}
}
window-rule {
geometry-corner-radius 12
clip-to-geometry true
tiled-state true
draw-border-with-background false
}
+61
View File
@@ -0,0 +1,61 @@
// Laptop Monitor
output "eDP-1" {
mode "2256x1504@59.999"
scale 1.5
position x=859 y=1080
}
// Work Monitor
output "Ancor Communications Inc ASUS VE278 E5LMTF016849" {
mode "1920x1080@60.000"
scale 1
position x=1027 y=0
}
output "DP-9" {
mode "1920x1080@74.973"
scale 1
position x=0 y=0
}
output "Samsung Electric Company S22R35x H4TR604392" {
mode "1920x1080@60.000"
scale 1
position x=106 y=0
}
output "DP-10" {
mode "1920x1080@74.973"
scale 1
position x=1920 y=0
}
output "Samsung Electric Company S22R35x H4TR503886" {
mode "1920x1080@60.000"
scale 1
position x=2026 y=0
}
output "PNP(GWD) ARZOPA \\x15\\xd9F\\x1675US0000" {
mode "1920x1080@60.000"
scale 1
transform "normal"
position x=2860 y=1080
}
output "DP-2" {
mode "1920x1080@60.000"
scale 1
position x=3115 y=1504
}
output "Dell Inc. DELL SE3223Q 1WDWKK3" {
scale 2
position x=4780 y=0
}
output "Dell Inc. DELL SE3223Q 1TRXKK3" {
scale 2
position x=6700 y=0
}
Whitespace-only changes.
@@ -0,0 +1,94 @@
// DMS Window Rules - Managed by DankMaterialShell
// Do not edit manually - changes may be overwritten
// @id=dms_rule_0 @name=
window-rule {
match app-id="^signal$"
open-focused true
}
window-rule {
match app-id="zoom"
open-floating true
open-focused true
default-column-width { proportion 0.75; }
default-window-height { proportion 0.8; }
}
// @id=dms_rule_1 @name=
window-rule {
match app-id="org.pipewire.Helvum"
open-floating true
open-focused true
default-column-width { proportion 0.75; }
default-window-height { proportion 0.8; }
}
// @id=dms_rule_2 @name=Slack Huddle Rules
window-rule {
match app-id="Slack" title="$Huddle:.*"
open-floating true
open-focused true
default-column-width { proportion 0.25; }
default-window-height { proportion 0.5; }
}
// @id=dms_rule_3 @name=
window-rule {
match app-id="remote-viewer"
open-maximized true
open-fullscreen true
open-focused true
}
// @id=dms_rule_4 @name=
window-rule {
match is-active=false
opacity 0.85
}
// @id=dms_rule_5 @name=
window-rule {
match is-urgent=true
open-focused true
}
// @id=dms_rule_6 @name=
window-rule {
match app-id="satty"
open-floating true
open-focused true
default-column-width { proportion 0.75; }
default-window-height { proportion 0.75; }
min-width 800
min-height 400
}
// @id=dms_rule_7 @name=
window-rule {
match app-id="org.shotcut.Shotcut"
opacity 0.95
open-maximized true
open-focused true
}
// @id=dms_rule_8 @name=
window-rule {
match app-id="Sparrow"
block-out-from "screen-capture"
focus-ring { active-color "#f00f"; }
}
// @id=dms_rule_9 @name=
window-rule {
match app-id="Sparrow" title="Bitwarden" is-focused=false
opacity 0.45
}
// @id=dms_rule_10 @name=
window-rule {
match app-id="^com.slack.Slack$"
clip-to-geometry true
border { active-color "#0f0f"; }
}
+9
View File
@@ -0,0 +1,9 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
layer-rule {
match namespace="dms:blurwallpaper"
place-within-backdrop true
}