configs/desktop/scripts/swww.sh
Lucas Barbieri 86501e8afe add new monochrome colorscheme
glorb is godly
2024-03-28 11:10:33 -03:00

38 lines
849 B
Bash
Executable File

#!/bin/bash
export SWWW_TRANSITION_STEP=90
export SWWW_TRANSITION_FPS=60
export SWWW_TRANSITION=wipe
export SWWW_TRANSITION_ANGLE=30
export SWWW_TRANSITION_POS=center
CURRENT_THEME=$(cat ~/colorscheme)
if [[ -z "$1" ]]; then
case "$CURRENT_THEME" in
red)
FIRST=~/pics/wallpapers/bm5.jpg
SECOND=~/pics/wallpapers/bm3.png
;;
melange)
FIRST=~/pics/wallpapers/melange2.png
SECOND=~/pics/wallpapers/melange1.jpg
;;
white) # todo
FIRST=~/pics/wallpapers/sl3.jpg
SECOND=~/pics/wallpapers/sl2.png
;;
solarized)
FIRST=~/pics/wallpapers/solarized5.jpg
SECOND=~/pics/wallpapers/solarized4.png
esac
else
FIRST=$1
SECOND=$2
fi
swww init &
sleep 0.3
swww img -o HDMI-A-1 $FIRST
swww img -o DP-3 $SECOND