add wpg for theme switching
This commit is contained in:
parent
7a06470070
commit
dfae762222
5 changed files with 18 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue