rice wofi now
This commit is contained in:
10
scripts/load-wallpaper.sh
Normal file
10
scripts/load-wallpaper.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
WALLPAPER=$(cat $HOME/.cache/.wallpaper)
|
||||
|
||||
rm -r ~/.cache/wal
|
||||
|
||||
# wal -stn -a 90 -i $HOME/wallpaper/$WALLPAPER
|
||||
|
||||
swww img $WALLPAPER --transition-fps 120 --transition-duration 2 -t wipe &
|
||||
bash ~/dotfiles/scripts/hot-reload.sh
|
||||
24
scripts/select-wallpaper.sh
Normal file
24
scripts/select-wallpaper.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
WALLPAPER=$(ls $HOME/Pictures/Wallpapers/ | wofi --show dmenu)
|
||||
|
||||
if [ ${#WALLPAPER} -gt 0 ] ; then
|
||||
|
||||
rm -f $HOME/.cache/.wallpaper
|
||||
|
||||
echo "$HOME/Pictures/Wallpapers/$WALLPAPER" >> $HOME/.cache/.wallpaper
|
||||
|
||||
rm -rf $HOME/.cache/wal
|
||||
|
||||
# notify-send -t 2000 -u low -h int:value:50 "OCbwoy3's Dotfiles" "Calculating color scheme"
|
||||
|
||||
# wal -stn -a 90 -i $HOME/wallpaper/$WALLPAPER
|
||||
|
||||
notify-send -t 2000 -u low "OCbwoy3's Dotfiles" "Setting wallpaper"
|
||||
|
||||
swww img $HOME/Pictures/Wallpapers/$WALLPAPER --transition-fps 300 --transition-duration 2 &
|
||||
# bash ~/dotfiles/scripts/hot-reload.sh
|
||||
|
||||
else
|
||||
printf "not changing wallpaper\n"
|
||||
fi
|
||||
Reference in New Issue
Block a user