From 6f26ae8e1d0cde2f6f5007b3dba13622cbe29c75 Mon Sep 17 00:00:00 2001 From: Dennis Schoepf Date: Sun, 23 Nov 2025 18:00:59 +0100 Subject: [PATCH] wip: dnsc-machine setup --- modules/wm/awww/scripts/random-bg.sh | 4 ++-- modules/wm/niri/config/config.kdl | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/wm/awww/scripts/random-bg.sh b/modules/wm/awww/scripts/random-bg.sh index a77db71..12c5213 100755 --- a/modules/wm/awww/scripts/random-bg.sh +++ b/modules/wm/awww/scripts/random-bg.sh @@ -11,7 +11,7 @@ if [ $# -lt 1 ] || [ ! -d "$1" ]; then fi # See awww-img(1) -RESIZE_TYPE="fit" +RESIZE_TYPE="crop" export AWWW_TRANSITION_FPS="${AWWW_TRANSITION_FPS:-60}" export AWWW_TRANSITION_STEP="${AWWW_TRANSITION_STEP:-2}" @@ -22,7 +22,7 @@ while true; do done \ | sort -n | cut -d':' -f2- \ | while read -r img; do - awww img --resize="$RESIZE_TYPE" "$img" + swww img --resize="$RESIZE_TYPE" "$img" sleep "${2:-$DEFAULT_INTERVAL}" done done diff --git a/modules/wm/niri/config/config.kdl b/modules/wm/niri/config/config.kdl index cab4d5e..e4c9892 100644 --- a/modules/wm/niri/config/config.kdl +++ b/modules/wm/niri/config/config.kdl @@ -183,8 +183,10 @@ layout { } // STARTUP + +// Wallpaper Setup spawn-at-startup "swww-daemon" // Wallpaper -// spawn-sh-at-startup "" +spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark" hotkey-overlay { // Uncomment this line to disable the "Important Hotkeys" pop-up at startup. @@ -509,6 +511,10 @@ binds { // Powers off the monitors. To turn them back on, do any input like // moving the mouse or pressing any other key. Mod+Shift+P { power-off-monitors; } + + // Other bindings + Mod+Ctrl+Alt+U { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/.un"; } + Mod+Ctrl+Alt+S { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"; } } xwayland-satellite {