Search ~/.config fromm command palette

master
Daniel Napora 2022-05-01 13:19:43 +02:00
parent ca1f12dee2
commit 38414c8457
1 changed files with 7 additions and 1 deletions

View File

@ -50,6 +50,12 @@ MENU_HEIGHT_MAX=600
[ -z $jgmenu_use_borders ] && menu_border=0
mkconfigfile
CNFDIRFILE="$HOME/.config/mabox/configdir.csv"
> $CNFDIRFILE
while read i; do
echo "~/.config${i#*config},xdg-open ${i}" >> $CNFDIRFILE
done < <(tree -aif -I chromium -I "Local Storage" -I IndexedDB -I registry -I icons -I "*cache*" -I "*Cach*" --noreport ~/.config/)
cat <<EOF > ${MENU_ITEMS}
@search,,25,15,292,20,4,left,top,auto,#262626,"""<big></big> <i>$TYPE_TO_SEARCH</i>"""
@ -57,7 +63,7 @@ cat <<EOF > ${MENU_ITEMS}
$EDIT,mbhelper edit
${TODEFAULT}
. $CSVFILE
. $CNFDIRFILE
EOF