diff --git a/usr/bin/jgmenusettings-pipe b/usr/bin/jgmenusettings-pipe index f2c46d1..7029198 100755 --- a/usr/bin/jgmenusettings-pipe +++ b/usr/bin/jgmenusettings-pipe @@ -307,10 +307,11 @@ 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 #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+=("$CHOOSE [$jgmenu_theme],^checkout(motywy)") +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)") @@ -320,8 +321,9 @@ 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+=("#${menu_gradient_pos}\n") +out+=("$CHOOSE [${wm_theme// /_}],^checkout(motywy)") +out+=("$EDIT_CURRENT: (${wm_theme// /_}),geany $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc,geany") out+=("$FOLLOW_OB,mb-setvar jgmenu_theme=obtheme;$me ^sep()") out+=("$GRADIENT [ ${menu_gradient_pos:-none} ],^checkout(gradient)")