.
This commit is contained in:
parent
cba0f6f825
commit
418e090ce6
37 changed files with 933 additions and 25 deletions
10
scripts/background.sh
Executable file
10
scripts/background.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
WALLPAPER_DIR="$HOME/dotfiles/backgrounds/"
|
||||
CURRENT_WALL=$(hyprctl hyprpaper listloaded)
|
||||
|
||||
# Get a random wallpaper that is not the current one
|
||||
WALLPAPER=$(find "$WALLPAPER_DIR" -type f ! -name "$(basename "$CURRENT_WALL")" | shuf -n 1)
|
||||
|
||||
# Apply the selected wallpaper
|
||||
hyprctl hyprpaper reload ,"$WALLPAPER"
|
||||
Loading…
Add table
Add a link
Reference in a new issue