Backgrounds
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
|
||||
# Picks and sets a random background
|
||||
|
||||
BACKGROUNDS_PATH="$HOME/Tower/Library/Pictures/Wallpapers/3840x2160/"
|
||||
CURRENT_BACKGROUND_LINK="$HOME/.local/state/station/background"
|
||||
width=$(hyprctl monitors -j | jq 'map(.width) | add')
|
||||
height=$(hyprctl monitors -j | jq '.[0].height')
|
||||
BACKGROUNDS_PATH="$HOME/Tower/Library/Pictures/Wallpapers/${width}x${height}/"
|
||||
|
||||
mapfile -d '' -t BACKGROUNDS < <(find -L "$BACKGROUNDS_PATH" -maxdepth 1 -type f -print0 2>/dev/null | sort -z)
|
||||
TOTAL=${#BACKGROUNDS[@]}
|
||||
|
||||
Reference in New Issue
Block a user