From 614bda28551862af6b3915cb5ebf6c9b7f8cc0df Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Fri, 17 Jan 2025 14:42:51 -0600 Subject: [PATCH] Add wpaperd --- templates/.config/niri/config.kdl | 1 + templates/.config/wpaperd/config.toml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 templates/.config/wpaperd/config.toml diff --git a/templates/.config/niri/config.kdl b/templates/.config/niri/config.kdl index 0a86afa..441ebe0 100644 --- a/templates/.config/niri/config.kdl +++ b/templates/.config/niri/config.kdl @@ -192,6 +192,7 @@ spawn-at-startup "pipewire-pulse" spawn-at-startup "wireplumber" spawn-at-startup "waybar" spawn-at-startup "xwayland-satellite" ":12" +spawn-at-startup "wpaperd" environment { DISPLAY ":12" diff --git a/templates/.config/wpaperd/config.toml b/templates/.config/wpaperd/config.toml new file mode 100644 index 0000000..67ff0fd --- /dev/null +++ b/templates/.config/wpaperd/config.toml @@ -0,0 +1,7 @@ +% for output in host.get('outputs', []): +% if 'background' in output: +["${'any' if output['match'] == '*' else output['match']}"] +path = "${output['background'][0]}" +mode = "${output['background'][1].replace('fill', 'center')}" +%endif +% endfor