From 5466d27b98f2f96f65362c63d1c9a088ae9fa4bb Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 13 Jun 2026 14:24:13 +0200 Subject: [PATCH] try to update niri/noctalia config --- modules/wm/niri/binds/default.kdl | 14 +++++++------- modules/wm/niri/binds/lifebook.kdl | 14 +++++++------- modules/wm/niri/config.kdl | 26 +++++++++++++++++++++++--- 3 files changed, 37 insertions(+), 17 deletions(-) diff --git a/modules/wm/niri/binds/default.kdl b/modules/wm/niri/binds/default.kdl index 76319fa..b7b2eb9 100644 --- a/modules/wm/niri/binds/default.kdl +++ b/modules/wm/niri/binds/default.kdl @@ -22,13 +22,13 @@ binds { XF86AudioPrev allow-when-locked=true { spawn-sh "playerctl previous"; } XF86AudioNext allow-when-locked=true { spawn-sh "playerctl next"; } - Mod+Alt+L { spawn-sh "noctalia-shell ipc call lockScreen lock"; } - XF86AudioLowerVolume allow-when-locked=true { spawn-sh "noctalia-shell ipc call volume decrease"; } - XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "noctalia-shell ipc call volume increase"; } - XF86MonBrightnessUp allow-when-locked=true { spawn-sh "noctalia-shell ipc call brightness increase"; } - XF86MonBrightnessDown allow-when-locked=true { spawn-sh "noctalia-shell ipc call brightness decrease"; } - XF86AudioMute allow-when-locked=true { spawn-sh "noctalia-shell ipc call volume muteOutput"; } - XF86AudioMicMute allow-when-locked=true { spawn-sh "noctalia-shell ipc call volume muteInput"; } + Mod+Alt+L { spawn-sh "noctalia msg session lock"; } + XF86AudioLowerVolume allow-when-locked=true { spawn-sh "noctalia msg volume-down"; } + XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "noctalia msg volume-up"; } + XF86MonBrightnessUp allow-when-locked=true { spawn-sh "noctalia msg brightness-up"; } + XF86MonBrightnessDown allow-when-locked=true { spawn-sh "noctalia msg brightness-down"; } + XF86AudioMute allow-when-locked=true { spawn-sh "noctalia msg volume-mute"; } + XF86AudioMicMute allow-when-locked=true { spawn-sh "noctalia msg mic-mute"; } // Open/close the Overview: a zoomed-out view of workspaces and windows. // You can also move the mouse into the top-left hot corner, // or do a four-finger swipe up on a touchpad. diff --git a/modules/wm/niri/binds/lifebook.kdl b/modules/wm/niri/binds/lifebook.kdl index 6af006a..dade59d 100644 --- a/modules/wm/niri/binds/lifebook.kdl +++ b/modules/wm/niri/binds/lifebook.kdl @@ -26,13 +26,13 @@ binds { XF86AudioPrev allow-when-locked=true { spawn-sh "playerctl previous"; } XF86AudioNext allow-when-locked=true { spawn-sh "playerctl next"; } - Mod+Alt+L { spawn-sh "noctalia-shell ipc call lockScreen lock"; } - XF86AudioLowerVolume allow-when-locked=true { spawn-sh "noctalia-shell ipc call volume decrease"; } - XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "noctalia-shell ipc call volume increase"; } - XF86MonBrightnessUp allow-when-locked=true { spawn-sh "noctalia-shell ipc call brightness increase"; } - XF86MonBrightnessDown allow-when-locked=true { spawn-sh "noctalia-shell ipc call brightness decrease"; } - XF86AudioMute allow-when-locked=true { spawn-sh "noctalia-shell ipc call volume muteOutput"; } - XF86AudioMicMute allow-when-locked=true { spawn-sh "noctalia-shell ipc call volume muteInput"; } + Mod+Alt+L { spawn-sh "noctalia msg session lock"; } + XF86AudioLowerVolume allow-when-locked=true { spawn-sh "noctalia msg volume-down"; } + XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "noctalia msg volume-up"; } + XF86MonBrightnessUp allow-when-locked=true { spawn-sh "noctalia msg brightness-up"; } + XF86MonBrightnessDown allow-when-locked=true { spawn-sh "noctalia msg brightness-down"; } + XF86AudioMute allow-when-locked=true { spawn-sh "noctalia msg volume-mute"; } + XF86AudioMicMute allow-when-locked=true { spawn-sh "noctalia msg mic-mute"; } // Open/close the Overview: a zoomed-out view of workspaces and windows. // You can also move the mouse into the top-left hot corner, // or do a four-finger swipe up on a touchpad. diff --git a/modules/wm/niri/config.kdl b/modules/wm/niri/config.kdl index 2a86901..c75f0d0 100644 --- a/modules/wm/niri/config.kdl +++ b/modules/wm/niri/config.kdl @@ -299,7 +299,7 @@ layout { // See the binds section below for more spawn examples. // This line starts waybar, a commonly used bar for Wayland compositors. -spawn-at-startup "noctalia-shell" +spawn-at-startup "noctalia" spawn-at-startup "firefox" spawn-at-startup "element-desktop" spawn-at-startup "thunderbird" @@ -402,10 +402,30 @@ window-rule { // Example: enable rounded corners for all windows. // (This example rule is commented out with a "/-" in front.) -/-window-rule { - geometry-corner-radius 12 +/- +window-rule { + geometry-corner-radius 20 clip-to-geometry true } +// Floating Noctalia settings window. +window-rule { + match app-id="dev.noctalia.Noctalia.Settings" + open-floating true + default-column-width { fixed 1080; } + default-window-height { fixed 920; } +} + + +debug { + // Allows notification actions and window activation from Noctalia. + honor-xdg-activation-with-invalid-serial +} + +layer-rule { + match namespace="^noctalia-backdrop" + place-within-backdrop true +} + include "./binds.kdl" include "./noctalia.kdl"