update
This commit is contained in:
parent
fee73b578c
commit
b289393d41
1 changed files with 12 additions and 0 deletions
12
scripts/.local/bin/wpaperdchanger
Executable file
12
scripts/.local/bin/wpaperdchanger
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
directory=~/Pictures/wallpapers
|
||||
#wallpaper=~/.cache/images/wallpaper.png
|
||||
#monitor=$(hyprctl monitors | grep Monitor | awk '{print $2}')
|
||||
|
||||
if [ -d "$directory" ]; then
|
||||
random_background=$(find $directory -type f | shuf -n 1)
|
||||
wallpaper "$random_background"
|
||||
wpaperctl reload-wallpaper
|
||||
fi
|
||||
Loading…
Add table
Reference in a new issue