diff --git a/modules/wm/niri/binds/default.kdl b/modules/wm/niri/binds/default.kdl index b7b2eb9..76319fa 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 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"; } + 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"; } // 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 dade59d..6af006a 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 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"; } + 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"; } // 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 c75f0d0..2a86901 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" +spawn-at-startup "noctalia-shell" spawn-at-startup "firefox" spawn-at-startup "element-desktop" spawn-at-startup "thunderbird" @@ -402,30 +402,10 @@ window-rule { // Example: enable rounded corners for all windows. // (This example rule is commented out with a "/-" in front.) -/- -window-rule { - geometry-corner-radius 20 +/-window-rule { + geometry-corner-radius 12 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"