add wpg for theme switching
This commit is contained in:
parent
7a06470070
commit
dfae762222
|
@ -3,13 +3,11 @@ Config { overrideRedirect = False
|
|||
, bgColor = "BGCOLOR"
|
||||
, fgColor = "FGCOLOR"
|
||||
, position = TopW L 100
|
||||
, iconRoot = ".config/xmobar/xpm/"
|
||||
, commands = [ Run Weather "EGPF"
|
||||
[ "--template", "<weather> <tempC>°C"
|
||||
, "-L", "0"
|
||||
, "-H", "25"
|
||||
, "--low" , "lightblue"
|
||||
, "--normal", "#f8f8f2"
|
||||
, "--high" , "red"
|
||||
] 36000
|
||||
, Run Cpu
|
||||
[ "-L", "3"
|
||||
|
@ -25,10 +23,10 @@ Config { overrideRedirect = False
|
|||
]
|
||||
, Run Memory ["--template", "Mem: <usedratio>%"] 10
|
||||
, Run Swap [] 10
|
||||
, Run Date "%a %Y-%m-%d <fc=#8be9fd>%H:%M</fc>" "date" 10
|
||||
, Run Date "%a %Y-%m-%d <fc=COLOR6>%H:%M</fc>" "date" 10
|
||||
, Run XMonadLog
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = "%XMonadLog% }{ %alsa:default:Master% | %cpu% | %memory% * %swap% | %EGPF% | %date% "
|
||||
, template = " <icon=haskell_20.xpm/> %XMonadLog% }{ %alsa:default:Master% | %cpu% | %memory% * %swap% | %EGPF% | %date% "
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 90fd606fb31f033373a3bd40030f19e5a1d586a0
|
||||
Subproject commit 949a7b7021a0587ddde0342207fe67fc0ccafcc5
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Import the colors
|
||||
. "${HOME}/.cache/wal/colors.sh"
|
||||
|
||||
dmenu_run -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15"
|
Loading…
Reference in New Issue