menu/sidepanels theming handling updated
parent
c2f4d7ba37
commit
4b166777fa
|
@ -150,17 +150,22 @@ out+=("$CIRCLE,mb-setvar jgmenu_icon_theme=Numix-Circle;mb-setvar jgmenu_use_ico
|
||||||
|
|
||||||
########## THEMES
|
########## THEMES
|
||||||
out+=("^sep($COLOR_SCHEME)")
|
out+=("^sep($COLOR_SCHEME)")
|
||||||
out+=("$CHOOSE,^checkout(motywy)")
|
|
||||||
|
|
||||||
if [ $jgmenu_theme != obtheme ]; then
|
if [ $jgmenu_theme != obtheme ]; then
|
||||||
|
out+=("<s>$FOLLOW_OB</s>,mb-setvar jgmenu_theme=obtheme;mb-jgtools settings
|
||||||
|
^sep()")
|
||||||
out+=("$EDIT_CURRENT: (<i>$jgmenu_theme</i>),geany $HOME/.config/mabox/jgobthemes/$jgmenu_theme.colorrc,geany")
|
out+=("$EDIT_CURRENT: (<i>$jgmenu_theme</i>),geany $HOME/.config/mabox/jgobthemes/$jgmenu_theme.colorrc,geany")
|
||||||
else
|
else
|
||||||
ob_file=$HOME/.config/openbox/rc.xml
|
ob_file=$HOME/.config/openbox/rc.xml
|
||||||
[[ -f $ob_file ]] && wm_theme=$(awk '/<theme>/ {while (getline n) {if (match(n, /<name>/)){l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$ob_file")
|
[[ -f $ob_file ]] && wm_theme=$(awk '/<theme>/ {while (getline n) {if (match(n, /<name>/)){l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$ob_file")
|
||||||
out+=("$EDIT_CURRENT: (<i>$wm_theme</i>),geany $HOME/.config/mabox/jgobthemes/$wm_theme.colorrc,geany")
|
out+=("$FOLLOW_OB,mb-setvar jgmenu_theme=obtheme;mb-jgtools settings
|
||||||
fi
|
|
||||||
out2+=("^tag(motywy)")
|
|
||||||
out2+=("$FOLLOW_OB,mb-setvar jgmenu_theme=obtheme;mb-jgtools settings
|
|
||||||
^sep()")
|
^sep()")
|
||||||
|
out+=("$EDIT_CURRENT: (<i>${wm_theme// /_}</i>),geany $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc,geany")
|
||||||
|
fi
|
||||||
|
out+=("$CHOOSE,^checkout(motywy)")
|
||||||
|
out2+=("^tag(motywy)")
|
||||||
|
|
||||||
for item in "$HOME"/.config/mabox/jgobthemes/*colorrc; do
|
for item in "$HOME"/.config/mabox/jgobthemes/*colorrc; do
|
||||||
theme="${item##*/}"
|
theme="${item##*/}"
|
||||||
out2+=("${theme%.*},mb-setvar jgmenu_theme=${theme%.*};mb-jgtools settings")
|
out2+=("${theme%.*},mb-setvar jgmenu_theme=${theme%.*};mb-jgtools settings")
|
||||||
|
|
Loading…
Reference in New Issue