summaryrefslogtreecommitdiff
path: root/themechanger.sh
blob: 92f2f552aa2aa92e94de1c849ff9a1b7f7fdd775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

wal=$(sxiv -o -t ~/stf/wals/)
wal_dir=$HOME/.cache/wal

if [ "$wal" == "" ] ; then
    dunstify "ERROR: No wallpaper was selected"
    exit 1
elseif [ $(echo "$wal" | wc -l) -gt 1 ]
    dunstify "ERROR: More than 1 wallpaper selected"
    exit 1
fi

sed -i "s|/home/monoblanco/stf/wals/.*|$wal\"|g" ~/.config/feh/.fehbg
source ~/.config/feh/.fehbg
wal -i "$wal"
sh walnewsboat.sh
sh waldunst.sh