From 0085f9ba74bcefa2516c0de4463ab214557c46d7 Mon Sep 17 00:00:00 2001 From: ryukamish Date: Tue, 3 Mar 2026 18:01:00 +0530 Subject: some fixes here and there --- niri/cfg/autostart.kdl | 4 ++++ niri/cfg/keybinds.kdl | 5 +++-- niri/cfg/window-rules.kdl | 7 ++++--- 3 files changed, 11 insertions(+), 5 deletions(-) (limited to 'niri/cfg') diff --git a/niri/cfg/autostart.kdl b/niri/cfg/autostart.kdl index cbf795b..3554731 100644 --- a/niri/cfg/autostart.kdl +++ b/niri/cfg/autostart.kdl @@ -1,2 +1,6 @@ spawn-at-startup "qs" "-c" "noctalia-shell" "--no-duplicate" spawn-sh-at-startup "/usr/lib/polkit-kde-authentication-agent-1 &" // Polkit +spawn-at-startup "swayidle" "-w" \ + "timeout" "300" "'qs' '-c' 'noctalia-shell' 'ipc' 'call' 'lockScreen' 'lock'" \ + "timeout" "305" "'niri' 'msg' 'action' 'power-off-monitors'" \ + "before-sleep" "'qs' '-c' 'noctalia-shell' 'ipc' 'call' 'lockScreen' 'lock'" diff --git a/niri/cfg/keybinds.kdl b/niri/cfg/keybinds.kdl index 280057f..695dc98 100644 --- a/niri/cfg/keybinds.kdl +++ b/niri/cfg/keybinds.kdl @@ -4,7 +4,8 @@ binds { Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } // ALT+Space hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } Mod+E hotkey-overlay-title="File manager: nautilus" { spawn "nautilus"; } - Mod+B hotkey-overlay-title="Browser: zen browser" { spawn "zen-browser"; } + Mod+B hotkey-overlay-title="Browser: brave" { spawn "brave"; } + Mod+Shift+B hotkey-overlay-title="Browser: brave ( private )" { spawn "brave" "--incognito"; } // ----------- DMS shell keybinds ------------ // ALT+Space hotkey-overlay-title="Run an Application: DMS launcher" { spawn-sh "dms ipc call launcher toggle"; } @@ -17,7 +18,7 @@ binds { // ----------- Noctalia shell keybinds ------------ ALT+Space hotkey-overlay-title="Run an Application: noctalia launcher" { spawn-sh "qs -c noctalia-shell ipc call launcher toggle"; } // Require `cliphist` package - Mod+Alt+V hotkey-overlay-title="Clipboard: noctalia clipboard" { spawn-sh "qs -c noctalia-shell ipc call launcher clipboard"; } + Mod+V hotkey-overlay-title="Clipboard: noctalia clipboard" { spawn-sh "qs -c noctalia-shell ipc call launcher clipboard"; } Mod+P hotkey-overlay-title="Session manager: noctalia session" { spawn-sh "qs -c noctalia-shell ipc call sessionMenu toggle"; } Mod+Period hotkey-overlay-title="Session manager: noctalia session" { spawn-sh "qs -c noctalia-shell ipc call launcher emoji"; } Mod+W hotkey-overlay-title="Wallpaper Selector: noctalia wallpaper" { spawn-sh "qs -c noctalia-shell ipc call wallpaper toggle"; } diff --git a/niri/cfg/window-rules.kdl b/niri/cfg/window-rules.kdl index f218a33..bff3ba4 100644 --- a/niri/cfg/window-rules.kdl +++ b/niri/cfg/window-rules.kdl @@ -14,20 +14,21 @@ window-rule { match app-id="zen" match app-id="chromium" match app-id="google-chrome" + match app-id="brave-browser" - - open-maximized-to-edges true + open-maximized true } window-rule { match app-id="TUI.float" + match app-id=r#"zen"# title="Raindrop" open-floating true } // Rounded cornors for all windows window-rule { - geometry-corner-radius 12 +// geometry-corner-radius 12 clip-to-geometry true } -- cgit v1.3