add wppengine.sh and refactor change-colorscheme+swww.sh
This commit is contained in:
parent
39f612c7dc
commit
7437d82e3e
@ -5,6 +5,11 @@ WHITE_NORMAL_WPP=~/pics/wallpapers/sl2.png
|
|||||||
|
|
||||||
RED_WIDE_WPP=~/pics/wallpapers/bm5.jpg
|
RED_WIDE_WPP=~/pics/wallpapers/bm5.jpg
|
||||||
RED_NORMAL_WPP=~/pics/wallpapers/bm3.png
|
RED_NORMAL_WPP=~/pics/wallpapers/bm3.png
|
||||||
|
RED_WIDE_LIVE=2883426230
|
||||||
|
RED_NORMAL_LIVE=2011974721
|
||||||
|
|
||||||
|
MELANGE_WIDE_LIVE=2980001176
|
||||||
|
MELANGE_NORMAL_LIVE=3033188884
|
||||||
|
|
||||||
CHOICE=$(tofi <$HOME/scripts/choices)
|
CHOICE=$(tofi <$HOME/scripts/choices)
|
||||||
|
|
||||||
@ -12,6 +17,10 @@ CHOICE=$(tofi <$HOME/scripts/choices)
|
|||||||
case "$CHOICE" in
|
case "$CHOICE" in
|
||||||
melange)
|
melange)
|
||||||
|
|
||||||
|
# i'll give linux-wppengine a try
|
||||||
|
~/scripts/wppengine.sh $MELANGE_WIDE_LIVE $MELANGE_NORMAL_LIVE
|
||||||
|
|
||||||
|
#change tmux theme
|
||||||
ln -sf ~/.config/tmux/tmux-melange.conf ~/.config/tmux/theme.conf
|
ln -sf ~/.config/tmux/tmux-melange.conf ~/.config/tmux/theme.conf
|
||||||
tmux source-file ~/.config/tmux/tmux.conf
|
tmux source-file ~/.config/tmux/tmux.conf
|
||||||
|
|
||||||
@ -24,6 +33,10 @@ case "$CHOICE" in
|
|||||||
# change waybar theme
|
# change waybar theme
|
||||||
killall waybar; waybar -s ~/.config/waybar/style-melange.css > /dev/null &
|
killall waybar; waybar -s ~/.config/waybar/style-melange.css > /dev/null &
|
||||||
|
|
||||||
|
# neofetch
|
||||||
|
sed -i 's/image_source=.*/image_source="$HOME\/pics\/neofetch\/melangium.jpg"/g' ~/.config/neofetch/config.conf
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
white)
|
white)
|
||||||
|
|
||||||
@ -34,7 +47,7 @@ case "$CHOICE" in
|
|||||||
sed -i 's/color_scheme = .*/color_scheme = "Solarized Light (Gogh)"/g' ~/.config/wezterm/wezterm.lua
|
sed -i 's/color_scheme = .*/color_scheme = "Solarized Light (Gogh)"/g' ~/.config/wezterm/wezterm.lua
|
||||||
|
|
||||||
# neofetch
|
# neofetch
|
||||||
sed -i 's/red.jpg/rh.jpg/g' ~/.config/neofetch/config.conf
|
sed -i 's/image_source=.*/image_source="$HOME\/pics\/rh.jpg"/g' ~/.config/neofetch/config.conf
|
||||||
sed -i '0,/cl3/{s/cl3/cl11/}' ~/.config/neofetch/config.conf
|
sed -i '0,/cl3/{s/cl3/cl11/}' ~/.config/neofetch/config.conf
|
||||||
|
|
||||||
# waybar white css
|
# waybar white css
|
||||||
@ -43,6 +56,9 @@ case "$CHOICE" in
|
|||||||
;;
|
;;
|
||||||
red)
|
red)
|
||||||
|
|
||||||
|
# wpp engine?
|
||||||
|
~/scripts/wppengine.sh $RED_WIDE_LIVE $RED_NORMAL_LIVE
|
||||||
|
|
||||||
# change tmux theme and reload
|
# change tmux theme and reload
|
||||||
ln -sf ~/.config/tmux/tmux-red.conf ~/.config/tmux/theme.conf
|
ln -sf ~/.config/tmux/tmux-red.conf ~/.config/tmux/theme.conf
|
||||||
tmux source-file ~/.config/tmux/tmux.conf
|
tmux source-file ~/.config/tmux/tmux.conf
|
||||||
@ -51,7 +67,7 @@ case "$CHOICE" in
|
|||||||
sed -i 's/color_scheme = .*/color_scheme = "Fahrenheit"/g' ~/.config/wezterm/wezterm.lua
|
sed -i 's/color_scheme = .*/color_scheme = "Fahrenheit"/g' ~/.config/wezterm/wezterm.lua
|
||||||
|
|
||||||
# change neofetch pic (yes lmao)
|
# change neofetch pic (yes lmao)
|
||||||
sed -i 's/rh.jpg/red.jpg/g' ~/.config/neofetch/config.conf
|
sed -i 's/image_source=.*/image_source="$HOME\/pics\/red.jpg"/g' ~/.config/neofetch/config.conf
|
||||||
sed -i '0,/cl11/{s/cl11/cl3/}' ~/.config/neofetch/config.conf
|
sed -i '0,/cl11/{s/cl11/cl3/}' ~/.config/neofetch/config.conf
|
||||||
|
|
||||||
# waybar black css
|
# waybar black css
|
||||||
|
3
desktop/scripts/choices
Normal file
3
desktop/scripts/choices
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
white
|
||||||
|
red
|
||||||
|
melange
|
@ -5,15 +5,20 @@ export SWWW_TRANSITION=wipe
|
|||||||
export SWWW_TRANSITION_ANGLE=30
|
export SWWW_TRANSITION_ANGLE=30
|
||||||
export SWWW_TRANSITION_POS=center
|
export SWWW_TRANSITION_POS=center
|
||||||
|
|
||||||
current_theme=$(readlink ~/.config/tmux/theme.conf)
|
CURRENT_THEME=$(cat ~/colorscheme)
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
if [[ $current_theme == *tmux-white.conf ]]; then
|
case "$CURRENT_THEME" in
|
||||||
FIRST=~/pics/wallpapers/sl3.jpg
|
red)
|
||||||
SECOND=~/pics/wallpapers/sl2.png
|
|
||||||
else
|
|
||||||
FIRST=~/pics/wallpapers/bm5.jpg
|
FIRST=~/pics/wallpapers/bm5.jpg
|
||||||
SECOND=~/pics/wallpapers/bm3.png
|
SECOND=~/pics/wallpapers/bm3.png
|
||||||
fi
|
;;
|
||||||
|
melange) #todo
|
||||||
|
;;
|
||||||
|
white) # todo
|
||||||
|
FIRST=~/pics/wallpapers/sl3.jpg
|
||||||
|
SECOND=~/pics/wallpapers/sl2.png
|
||||||
|
;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
FIRST=$1
|
FIRST=$1
|
||||||
SECOND=$2
|
SECOND=$2
|
||||||
|
24
desktop/scripts/wppengine.sh
Executable file
24
desktop/scripts/wppengine.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CURRENT_THEME=$(cat ~/colorscheme)
|
||||||
|
if [[ -z "$1" ]]; then
|
||||||
|
case "$CURRENT_THEME" in
|
||||||
|
red)
|
||||||
|
FIRST=2883426230
|
||||||
|
SECOND=2011974721
|
||||||
|
;;
|
||||||
|
melange)
|
||||||
|
FIRST=2980001176
|
||||||
|
SECOND=3033188884
|
||||||
|
;;
|
||||||
|
white) # todo
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
FIRST=$1
|
||||||
|
SECOND=$2
|
||||||
|
fi
|
||||||
|
|
||||||
|
killall linux-wallpaperengine
|
||||||
|
linux-wallpaperengine --silent --no-audio-processing --disable-mouse --screen-root HDMI-A-1 $FIRST > /dev/null &
|
||||||
|
linux-wallpaperengine --silent --no-audio-processing --disable-mouse --screen-root DP-3 $SECOND > /dev/null &
|
Loading…
Reference in New Issue
Block a user