-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaper
More file actions
executable file
·29 lines (21 loc) · 890 Bytes
/
paper
File metadata and controls
executable file
·29 lines (21 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
dir="$HOME/Pictures/wallpapers"
stamp="$(date '+%a_%y%m%d_%I:%M%P')"
setsid -f herbe "folding paper with pywal..."
if timeout 6s wal --cols16 --saturate 0.2 -a 40 --recursive -i "$dir" >/dev/null 2>&1; then
picpath="$(cat "$HOME/.cache/wal/wal")"
picname="$(basename "$picpath")"
picmesg="paperplane landed at '$picname' international"
xrdb -merge "$HOME/.Xresources"
dwm-msg run_command xrdb
colorxpet
colorbaby
setsid -f herbe "paperplane landed " " " "$picname"
echo "$stamp: $picmesg" >> "$HOME/.cache/scripts/paperplane.log"
else
picpath="$(cat "$HOME/.cache/wal/wal")"
picname="$(basename "$picpath")"
picmesg="paperplane crashed into '$picname' airport"
setsid -f herbe " paperplane crashed!" " " " wallpaper not set."
echo "$stamp: $picmesg" >> "$HOME/.cache/scripts/paperplane.log"
fi