diff --git a/usr/bin/jgmenusettings-pipe b/usr/bin/jgmenusettings-pipe index c7925c2..00a1ff0 100755 --- a/usr/bin/jgmenusettings-pipe +++ b/usr/bin/jgmenusettings-pipe @@ -291,23 +291,32 @@ out+=("^sep($COLOR_SCHEME)") ob_file=$HOME/.config/openbox/rc.xml [[ -f $ob_file ]] && wm_theme=$(awk '// {while (getline n) {if (match(n, //)){l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$ob_file") -out+=("$CHOOSE,^checkout(motywy)") -if [ $jgmenu_theme != obtheme ]; then +out+=("$CHOOSE,^checkout(motywy)") +if [ $jgmenu_theme != obtheme ]; then #INNY NIĆ» OB THEME +. $HOME/.config/mabox/jgobthemes/${jgmenu_theme}.colorrc out+=("$EDIT_CURRENT: ($jgmenu_theme),geany $HOME/.config/mabox/jgobthemes/$jgmenu_theme.colorrc,geany") out+=("$FOLLOW_OB,mb-setvar jgmenu_theme=obtheme;$me ^sep()") +out+=("$GRADIENT [ ${menu_gradient_pos:-none} ],^checkout(gradient)") +out2+=("^tag(gradient)") +for i in none top right bottom left top_left top_right bottom_left bottom_right; do out2+=("$(printf "%14s,%s" "$i" "mb-setvar menu_gradient_pos=${i} $HOME/.config/mabox/jgobthemes/$jgmenu_theme.colorrc;$me")");done +out2+=("^tag(motywy)") else + +. $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc +out+=("#${menu_gradient_pos}\n") out+=("$EDIT_CURRENT: (${wm_theme// /_}),geany $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc,geany") out+=("$FOLLOW_OB,mb-setvar jgmenu_theme=obtheme;$me ^sep()") -fi -. $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc - out+=("$GRADIENT [ ${menu_gradient_pos:-none} ],^checkout(gradient)") out2+=("^tag(gradient)") for i in none top right bottom left top_left top_right bottom_left bottom_right; do out2+=("$(printf "%14s,%s" "$i" "mb-setvar menu_gradient_pos=${i} $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc;$me")");done out2+=("^tag(motywy)") +fi + + + for item in "$HOME"/.config/mabox/jgobthemes/*colorrc; do theme="${item##*/}"