blob: 535e016e9e2c04301cd19a796f129f5fff45505a (
plain)
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
30
31
|
#!/bin/sh
~/.config/openbox/autorun/1_screenres
xrandr --output DP-2 --mode 1920x1080 --rate 60 --pos 3200x0
if [ ! -d "$HOME/Pictures/Wall" ]; then
exit 1
fi
pkill -9 -f xfce4-panel
screen -d -m xfce4-panel
while IFS= read -r file; do
if [ -n "$files_string" ]; then
files_string+=" "
fi
files_string+="$file"
done < <(find "$HOME/Pictures/Wall" -type f)
IFS=' ' read -ra files <<< "$files_string"
sorted_files=($(printf "%s\n" "${files[@]}" | sort))
sorted_file_list=$(printf "%s " "${sorted_files[@]}")
echo $sorted_file_list
pkill -9 -f spacefm
screen -d -m "$HOME/.config/openbox/spacefm"
sleep 1
feh --bg-fill $sorted_file_list
|