mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 18:34:56 +08:00
11 lines
411 B
Bash
Executable file
11 lines
411 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
|
|
blurwall=$(echo $wall | sed 's/\.jpg$/-blurred.jpg/')
|
|
swaybg -o $output -i $wallpapers_dir/$blurwall -m fill
|