File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444- [x] Configure wlogout (logout screen) (#62 )
4545- [x] Configure hyprlock (lock screen) (#63 )
4646- [x] Configure hypridle (idle management) (#64 )
47+ - [ ] Configure awww/hyprpaper (wallpapers)
4748
4849## Color Schemes <!-- phase:color-schemes -->
4950
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK
2424# └───────────────────────────────────────────────────────────────────────────┘
2525
2626# Wallpaper daemon
27- exec-once = swww -daemon
28- exec-once = sleep 0.5 && swww img ~/.config/hypr/wallpapers/default .jpg --transition-type fade --transition-fps 120 --transition-duration 2
27+ exec-once = awww -daemon
28+ exec-once = sleep 0.5 && awww img "$(find ~/.config/hypr/wallpapers -maxdepth 1 -type f \( -name '* .jpg' -o -name '*.jpeg' -o -name '*.png' -o -name '*.webp' \) | head -n 1)" --transition-type fade --transition-fps 120 --transition-duration 2
2929
3030# Status bar
3131exec-once = waybar
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ CORE_PACKAGES_ARCH=(
194194 " kitty"
195195
196196 # Utilities
197- " swww "
197+ " awww "
198198 " dunst"
199199 " hyprlock"
200200 " hypridle"
@@ -547,7 +547,7 @@ create_directories() {
547547
548548check_requirements () {
549549 local missing=()
550- local cmds=(rofi waybar swww notify-send ip lspci)
550+ local cmds=(rofi waybar awww notify-send ip lspci)
551551
552552 for c in " ${cmds[@]} " ; do
553553 if ! command -v " $c " > /dev/null 2>&1 ; then
Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ pick_with_rofi() {
6262 thumb_sqre=" $CACHE_DIR /${filename} .sqre.png"
6363 ensure_thumb " $img " " $thumb_sqre " " $THUMB_SQRE_SIZE " || true
6464 if [ -f " $thumb_sqre " ]; then
65- printf ' %s\0icon \x1f%s\0info\x1f%s\ n' " $filename " " $thumb_sqre " " $img " >> " $tmp "
65+ printf ' %s\x00icon \x1f%s\n' " $filename " " $thumb_sqre " >> " $tmp "
6666 else
67- printf ' %s\0info\x1f%s\ n' " $filename " " $img " >> " $tmp "
67+ printf ' %s\n' " $filename " >> " $tmp "
6868 fi
6969 count=$(( count + 1 ))
7070 done
@@ -128,8 +128,8 @@ elif [ ! -f "$wallpaper" ]; then
128128 exit 1
129129fi
130130
131- if ! pgrep -x " swww -daemon" > /dev/null 2>&1 ; then
132- swww -daemon &
131+ if ! pgrep -x " awww -daemon" > /dev/null 2>&1 ; then
132+ awww -daemon &
133133 sleep 0.5
134134fi
135135
@@ -138,7 +138,7 @@ positions=("center" "top" "left" "right" "bottom" "top-left" "top-right" "bottom
138138rand_type=${types[$RANDOM % ${#types[@]} ]}
139139rand_pos=${positions[$RANDOM % ${#positions[@]} ]}
140140
141- swww img " $wallpaper " \
141+ awww img " $wallpaper " \
142142 --transition-type " $rand_type " \
143143 --transition-pos " $rand_pos " \
144144 --transition-duration 2 \
You can’t perform that action at this time.
0 commit comments