From 8cbadb61604667b407b53ee1258433994fa4765a Mon Sep 17 00:00:00 2001 From: coasteen Date: Thu, 9 Jul 2026 10:42:28 +0330 Subject: init --- local/bin/setwall.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 local/bin/setwall.sh (limited to 'local/bin/setwall.sh') diff --git a/local/bin/setwall.sh b/local/bin/setwall.sh new file mode 100755 index 0000000..548d281 --- /dev/null +++ b/local/bin/setwall.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -euo pipefail +WALL_DIR="/home/coast/.local/src/wall" +SUBDIR=$(find "$WALL_DIR" -mindepth 1 -maxdepth 1 -type d | shuf -n1) +FILE=$(find "$SUBDIR" -type f \( -iname '*.jpg' -o -iname '*.png' -o -iname '*.jpeg' \) | shuf -n1) +if [[ -n "$FILE" ]]; then + swaymsg output '*' bg "$FILE" fill +fi -- cgit v1.2.3