diff --git a/bin/obtheme2jgmenu b/bin/obtheme2jgmenu new file mode 100755 index 0000000..426ebea --- /dev/null +++ b/bin/obtheme2jgmenu @@ -0,0 +1,7 @@ +#!/bin/bash + +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") + +jgmenu_run init --apply-obtheme +cp $HOME/.config/jgmenu/jgmenurc $HOME/.config/mabox/jgobthemes/$wm_theme.colorrc