update swww script and change colorscheme to accept arguments and handle those
very nice change
This commit is contained in:
parent
111a1efda2
commit
1c44669958
@ -9,8 +9,7 @@ RED_NORMAL_WPP=~/pics/wallpapers/bm3.png
|
|||||||
|
|
||||||
if [[ $CURRENT_THEME == *tmux-white.conf ]]; then
|
if [[ $CURRENT_THEME == *tmux-white.conf ]]; then
|
||||||
# change wallpaper
|
# change wallpaper
|
||||||
swww img -o HDMI-A-1 $RED_WIDE_WPP
|
~/scripts/swww.sh $RED_WIDE_WPP $RED_NORMAL_WPP
|
||||||
swww img -o DP-3 $RED_NORMAL_WPP
|
|
||||||
|
|
||||||
|
|
||||||
# change tmux theme and reload
|
# change tmux theme and reload
|
||||||
@ -32,8 +31,7 @@ if [[ $CURRENT_THEME == *tmux-white.conf ]]; then
|
|||||||
killall waybar; waybar > /dev/null &
|
killall waybar; waybar > /dev/null &
|
||||||
else
|
else
|
||||||
# change wpp
|
# change wpp
|
||||||
swww img -o HDMI-A-1 $WHITE_WIDE_WPP
|
~/scripts/swww.sh $WHITE_WIDE_WPP $WHITE_NORMAL_WPP
|
||||||
swww img -o DP-3 $WHITE_NORMAL_WPP
|
|
||||||
|
|
||||||
# change tmux theme and reload
|
# change tmux theme and reload
|
||||||
ln -sf ~/.config/tmux/tmux-white.conf ~/.config/tmux/theme.conf
|
ln -sf ~/.config/tmux/tmux-white.conf ~/.config/tmux/theme.conf
|
||||||
|
@ -19,8 +19,9 @@ else
|
|||||||
# sleep 0.3
|
# sleep 0.3
|
||||||
# xdotool click 2
|
# xdotool click 2
|
||||||
# sleep 0.2
|
# sleep 0.2
|
||||||
xdotool click 1
|
# xdotool click 1
|
||||||
sleep 1
|
# sleep 1
|
||||||
|
ydotool click --next-delay 1000 0xC0
|
||||||
|
|
||||||
done &
|
done &
|
||||||
echo "$!" >"$running"
|
echo "$!" >"$running"
|
||||||
|
@ -1,16 +1,27 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
SWWW_TRANSITION_STEP=1
|
export SWWW_TRANSITION_STEP=90
|
||||||
SWWW_TRANSITION_FPS=60
|
export SWWW_TRANSITION_FPS=60
|
||||||
SWWW_TRANSITION="grow"
|
export SWWW_TRANSITION=wipe
|
||||||
|
export SWWW_TRANSITION_ANGLE=30
|
||||||
swww-daemon &
|
export SWWW_TRANSITION_POS=center
|
||||||
|
|
||||||
current_theme=$(readlink ~/.config/tmux/theme.conf)
|
current_theme=$(readlink ~/.config/tmux/theme.conf)
|
||||||
|
if [[ -z "$1" ]]; then
|
||||||
if [[ $current_theme == *tmux-white.conf ]]; then
|
if [[ $current_theme == *tmux-white.conf ]]; then
|
||||||
swww img -o DP-3 ~/pics/wallpapers/HOLY.png
|
FIRST=~/pics/wallpapers/sl3.jpg
|
||||||
swww img -o HDMI-A-1 ~/pics/wallpapers/okw\ tf.jpg
|
SECOND=~/pics/wallpapers/sl2.png
|
||||||
else
|
else
|
||||||
swww img -o DP-3 ~/pics/wallpapers/a\ carnival.jpg
|
FIRST=~/pics/wallpapers/bm5.jpg
|
||||||
swww img -o HDMI-A-1 ~/pics/wallpapers/the\ true\ old\ god.jpg
|
SECOND=~/pics/wallpapers/bm3.png
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
FIRST=$1
|
||||||
|
SECOND=$2
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
swww init &
|
||||||
|
sleep 0.3
|
||||||
|
|
||||||
|
swww img -o HDMI-A-1 $FIRST
|
||||||
|
swww img -o DP-3 $SECOND
|
||||||
|
Loading…
Reference in New Issue
Block a user