Skip to content

Commit c0c2a38

Browse files
authored
Merge pull request #103 from xscriptor/dev
update wallpaper config
2 parents 4f69888 + ee59c71 commit c0c2a38

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

ROADMAP.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
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

config/hypr/autostart.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
3131
exec-once = waybar

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

548548
check_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

scripts/wallpaper.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
129129
fi
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
134134
fi
135135

@@ -138,7 +138,7 @@ positions=("center" "top" "left" "right" "bottom" "top-left" "top-right" "bottom
138138
rand_type=${types[$RANDOM % ${#types[@]}]}
139139
rand_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 \

0 commit comments

Comments
 (0)