aboutsummaryrefslogtreecommitdiff
path: root/bin/sway-random-bg
blob: bdcfd67e4cfe06630c89a09ff6d841c9da50e14e (plain)
1
2
3
4
5
6
7
#!/usr/bin/env bash

export SWAYSOCK="/run/user/$(id -u)/sway-ipc.$(id -u).$(pgrep -x sway).sock"

WALLPAPER_PATH="$HOME/Pictures/wallpapers"

swaymsg output '*' bg "$(find "$WALLPAPER_PATH" -type f | shuf -n 1)" fill