mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 15:36:11 +01:00
finished theme changer and wallpaper changer
This commit is contained in:
51
rofi/.config/rofi/scripts/theme
Executable file
51
rofi/.config/rofi/scripts/theme
Executable file
@@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
export PATH="${PATH}:${HOME}/.local/bin/"
|
||||
|
||||
dir="$HOME/.config/rofi/launchers/type-1"
|
||||
rofitheme='style-1'
|
||||
|
||||
themes=$HOME/.dots/theme
|
||||
option="$(ls $themes | rofi -dmenu -i -p " Select theme: " -theme ${dir}/${rofitheme}.rasi)"
|
||||
theme=$themes/$option
|
||||
|
||||
if [[ -d $themes/$option ]]; then
|
||||
echo "$themes/$option is a directory"
|
||||
exit 1
|
||||
elif [[ -f $themes/$option ]]; then
|
||||
echo "$themes/$option is a file"
|
||||
. $themes/$option
|
||||
else
|
||||
echo "$themes/$option is not valid"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source ~/.colormode
|
||||
|
||||
wallight=""
|
||||
gtktheme=Macchiato
|
||||
gtktype=dark
|
||||
|
||||
if [[ $isLight -eq 1 ]]; then
|
||||
wallight="-l"
|
||||
gtktheme=Latte
|
||||
gtktype=light
|
||||
fi
|
||||
|
||||
wal $wallight -i "$(cat $HOME/.cache/wal/wal)" --cols16
|
||||
# pywalfox update
|
||||
pywal-discord -t default
|
||||
wal-telegram --wal
|
||||
|
||||
. $HOME/.config/mako/update-colors.sh
|
||||
. $HOME/.config/spicetify/Themes/Pywal/update-colors.sh
|
||||
. $HOME/.config/cava/scripts/update-colors.sh
|
||||
|
||||
echo "Net/ThemeName \"Catppuccin-$gtktheme-Standard-Blue-$gtktype\"" > $HOME/.xsettingsd
|
||||
killall -HUP xsettingsd
|
||||
xsettingsd &
|
||||
|
||||
kill -HUP $(pgrep -f 'bar.sh')
|
||||
bash $HOME/.cache/wal/bar.sh & disown
|
||||
|
||||
killall -HUP dwm
|
||||
@@ -24,13 +24,32 @@ fi
|
||||
# swww img $wallpaper --transition-type grow --transition-fps 60 --transition-duration 1.0 --transition-bezier 0.65,0,0.35,1 --transition-step 255
|
||||
feh --bg-fill $wallpaper
|
||||
|
||||
wal -i $wallpaper --cols16
|
||||
pywalfox update
|
||||
source ~/.colormode
|
||||
|
||||
wallight=""
|
||||
gtktheme=Macchiato
|
||||
gtktype=dark
|
||||
|
||||
if [[ $isLight -eq 1 ]]; then
|
||||
wallight="-l"
|
||||
gtktheme=Latte
|
||||
gtktype=light
|
||||
fi
|
||||
|
||||
wal $wallight -i $wallpaper --cols16
|
||||
# pywalfox update
|
||||
pywal-discord -t default
|
||||
wal-telegram --wal
|
||||
|
||||
kill -HUP $(pgrep dwm)
|
||||
|
||||
. $HOME/.config/mako/update-colors.sh
|
||||
. $HOME/.config/spicetify/Themes/Pywal/update-colors.sh
|
||||
. $HOME/.config/cava/scripts/update-colors.sh
|
||||
. $HOME/.config/cava/scripts/update-colors.sh
|
||||
|
||||
echo "Net/ThemeName \"Catppuccin-$gtktheme-Standard-Blue-$gtktype\"" > $HOME/.xsettingsd
|
||||
killall -HUP xsettingsd
|
||||
xsettingsd &
|
||||
|
||||
kill -HUP $(pgrep -f 'bar.sh')
|
||||
bash $HOME/.cache/wal/bar.sh & disown
|
||||
|
||||
killall -HUP dwm
|
||||
|
||||
Reference in New Issue
Block a user