From 31e42cc1783b1facd1bbfd5fe4d76dfb5b9e8ca2 Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Mon, 3 Nov 2025 23:51:20 +0100 Subject: [PATCH] niri: update for switch to dms and ghostty --- home/.config/niri/config.kdl | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/home/.config/niri/config.kdl b/home/.config/niri/config.kdl index f6c0ba0..d1bb2b8 100644 --- a/home/.config/niri/config.kdl +++ b/home/.config/niri/config.kdl @@ -32,7 +32,7 @@ output "HDMI-A-1" { } layout { - gaps 12 + gaps 8 center-focused-column "never" @@ -58,11 +58,12 @@ layout { // You can change how the focus ring looks. focus-ring { + off // How many logical pixels the ring extends out from the windows. width 3 // Color of the ring on the active monitor. - active-color "#3d5f77" + active-color "#101010" // Color of the ring on inactive monitors. inactive-color "#505050" @@ -141,9 +142,9 @@ binds { Mod+Shift+Comma { show-hotkey-overlay; } // Suggested binds for running programs: terminal, app launcher, screen locker. - Mod+Return { spawn "sh" "-c" "alacritty msg create-window || alacritty"; } - Mod+D { spawn "vicinae" "toggle"; } - Super+Alt+L { spawn "swaylock"; } + Mod+Return { spawn "ghostty" "+new-window"; } + Mod+D { spawn "dms" "ipc" "call" "spotlight" "toggle"; } + Super+Alt+L hotkey-overlay-title="Lock session" { spawn "loginctl" "lock-session"; } XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; } XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-"; } @@ -326,6 +327,10 @@ binds { // Powers off the monitors. To turn them back on, do any input like // moving the mouse or pressing any other key. Mod+Shift+P { power-off-monitors; } + + Mod+N hotkey-overlay-title="Open notes" { + spawn-sh "ghostty -e hx --working-dir ~/notes ~/notes/notes.dj:9999"; + } } screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" @@ -341,3 +346,8 @@ environment { hotkey-overlay { skip-at-startup } + +layer-rule { + match namespace="dms:blurwallpaper" + place-within-backdrop true +}