mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-01-08 12:17:25 +08:00
9 lines
302 B
Bash
Executable file
9 lines
302 B
Bash
Executable file
#!/bin/sh
|
|
|
|
wallpapers_dir="$HOME/Pictures/Wallpapers/generated"
|
|
wall=$(ls $wallpapers_dir | grep -v '\-blurred\.jpg$' | tofi)
|
|
if [ -z $wall ]; then
|
|
exit
|
|
fi
|
|
output=$(niri msg -j focused-output | jq -r .name)
|
|
swww img -o $output $wallpapers_dir/$wall --transition-type random --transition-duration 1
|