niri: disable CSD, add autostart daemons

This commit is contained in:
Aleksey Samoilov 2025-06-12 12:28:29 +04:00
parent 549bfbd2c7
commit 174cb01300

View file

@ -254,6 +254,28 @@ layout {
// which may be more convenient to use. // which may be more convenient to use.
// See the binds section below for more spawn examples. // See the binds section below for more spawn examples.
// Autostart Polkit agent
spawn-at-startup "/usr/bin/mate-polkit"
// Set walppaper with Azote
spawn-at-startup "~/.azotebg"
// Start PCmanFM-Qt as a daemon
spawn-at-startup "pkill pcmanfm-qt"
spawn-at-startup "pcmanfm-qt -d &"
// Start nwg-drawer as a daemon
spawn-at-startup "pkill nwg-drawer"
spawn-at-startup "nwg-drawer -r &"
// Clipboard manager
spawn-at-startup "pkill wl-paste"
spawn-at-startup "wl-paste --watch cliphist store &"
spawn-at-startup "wl-paste --watch pkill -RTMIN+9 waybar &"
// Playerctl daemonize
spawn-at-startup "playerctl -a metadata --format \'{{status}} {{title}}\' --follow | while read line; do pkill -RTMIN+5 waybar; done &"
// This line starts waybar, a commonly used bar for Wayland compositors. // This line starts waybar, a commonly used bar for Wayland compositors.
// spawn-at-startup "waybar" // spawn-at-startup "waybar"
@ -262,7 +284,7 @@ layout {
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners. // Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
// This option will also fix border/focus ring drawing behind some semitransparent windows. // This option will also fix border/focus ring drawing behind some semitransparent windows.
// After enabling or disabling this, you need to restart the apps for this to take effect. // After enabling or disabling this, you need to restart the apps for this to take effect.
// prefer-no-csd prefer-no-csd
// You can change the path where screenshots are saved. // You can change the path where screenshots are saved.
// A ~ at the front will be expanded to the home directory. // A ~ at the front will be expanded to the home directory.