add wpg for theme switching

This commit is contained in:
qvalentin 2021-09-30 12:33:07 +02:00
parent 7a06470070
commit dfae762222
5 changed files with 18 additions and 16 deletions

View file

@ -25,11 +25,13 @@ xmobar_change(){
args=("$@")
PATH_TO_IMG="${args[0]}"
echo $PATH_TO_IMG
wal -i $PATH_TO_IMG
feh --bg-fill $PATH_TO_IMG
if [[ -z "$PATH_TO_IMG" ]]; then
wpg -m
else
echo $PATH_TO_IMG
wpg -a $PATH_TO_IMG
wpg -s "$(basename $PATH_TO_IMG)"
fi
# overwrite .Xresources file
cat ~/.cache/wal/colors.Xresources > ~/.Xresources
echo "\nXcursor.theme: Breeze" >> ~./Xresources
@ -37,11 +39,7 @@ echo "\nXcursor.theme: Breeze" >> ~./Xresources
# merge it into xrdb
xrdb -merge ~/.Xresources
# Does not really work because it takes the wrong colors and the cli cannot use the Xresources file for some reason...
# aur package is themix-full-git
# generate new gtk themes
/opt/oomox/plugins/theme_oomox/change_color.sh ~/.cache/wal/colors-oomox -o Wal -t ~/.themes/ -d true -m gtk3
emacsclient -e '(my-load-xresources)'
xmobar_change
killall xmobar

6
.scripts/dmen Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
# Import the colors
. "${HOME}/.cache/wal/colors.sh"
dmenu_run -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15"