upd
parent
e150a84622
commit
23711499e2
|
@ -7,6 +7,7 @@ case $LANG in
|
||||||
EDITCONF="Edytuj domyślny plik konfiguracyjny"
|
EDITCONF="Edytuj domyślny plik konfiguracyjny"
|
||||||
OPENCONFDIR="Otwórz katalog z konfiguracją"
|
OPENCONFDIR="Otwórz katalog z konfiguracją"
|
||||||
DOCU="Dokumentacja <b>Espanso</b> (online)"
|
DOCU="Dokumentacja <b>Espanso</b> (online)"
|
||||||
|
LIST="Lista wyzwalaczy:"
|
||||||
;;
|
;;
|
||||||
es*)
|
es*)
|
||||||
TYPE_TO_SEARCH="Buscar"
|
TYPE_TO_SEARCH="Buscar"
|
||||||
|
@ -14,6 +15,7 @@ case $LANG in
|
||||||
EDITCONF="Editar archivo x defecto"
|
EDITCONF="Editar archivo x defecto"
|
||||||
OPENCONFDIR="Abrir el directorio"
|
OPENCONFDIR="Abrir el directorio"
|
||||||
DOCU="Leer <b>Documentacion</b> de Espanso (en línea)"
|
DOCU="Leer <b>Documentacion</b> de Espanso (en línea)"
|
||||||
|
LIST="List of triggers:"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
TYPE_TO_SEARCH="Type to filter"
|
TYPE_TO_SEARCH="Type to filter"
|
||||||
|
@ -21,6 +23,7 @@ case $LANG in
|
||||||
EDITCONF="Edit default config file"
|
EDITCONF="Edit default config file"
|
||||||
OPENCONFDIR="Open config directory"
|
OPENCONFDIR="Open config directory"
|
||||||
DOCU="Read <b>Espanso</b> documentation (online)"
|
DOCU="Read <b>Espanso</b> documentation (online)"
|
||||||
|
LIST="List of triggers:"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -37,15 +40,17 @@ then
|
||||||
else
|
else
|
||||||
echo "@search,,10,5,292,20,4,left,top,auto,#262626,\"\"\"<big></big> <i>$TYPE_TO_SEARCH</i>\"\"\"" >/tmp/espanso_list.csv
|
echo "@search,,10,5,292,20,4,left,top,auto,#262626,\"\"\"<big></big> <i>$TYPE_TO_SEARCH</i>\"\"\"" >/tmp/espanso_list.csv
|
||||||
echo "^sep(Espanso - text expander)" >>/tmp/espanso_list.csv
|
echo "^sep(Espanso - text expander)" >>/tmp/espanso_list.csv
|
||||||
|
echo "^sep($CONFIGURE)" >>/tmp/espanso_list.csv
|
||||||
|
echo "$EDITCONF, geany ~/.config/espanso/default.yml" >>/tmp/espanso_list.csv
|
||||||
|
echo "$OPENCONFDIR,pcmanfm ~/.config/espanso/user/" >>/tmp/espanso_list.csv
|
||||||
|
echo "$DOCU,exo-open --launch WebBrowser https://espanso.org/docs/" >>/tmp/espanso_list.csv
|
||||||
|
echo "^sep($LIST)" >>/tmp/espanso_list.csv
|
||||||
while read -r line ; do
|
while read -r line ; do
|
||||||
|
|
||||||
IFS='-' read -r id string <<< "$line"
|
IFS='-' read -r id string <<< "$line"
|
||||||
printf "\"\"\"<b><tt>%-12s</tt></b> <i>%s</i>\"\"\",espanso match exec %s\n" $id "${string//</<}" $id >> $MENU_ITEMS
|
printf "\"\"\"<b><tt>%-12s</tt></b> <i>%s</i>\"\"\",espanso match exec %s\n" $id "${string//</<}" $id >> $MENU_ITEMS
|
||||||
done < <(espanso match list)
|
done < <(espanso match list)
|
||||||
echo "^sep($CONFIGURE)" >>/tmp/espanso_list.csv
|
|
||||||
echo "$EDITCONF, geany ~/.config/espanso/default.yml" >>/tmp/espanso_list.csv
|
|
||||||
echo "$OPENCONFDIR,pcmanfm ~/.config/espanso/user/" >>/tmp/espanso_list.csv
|
|
||||||
echo "$DOCU,exo-open --launch WebBrowser https://espanso.org/docs/" >>/tmp/espanso_list.csv
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -64,7 +69,7 @@ MENU_VALIGN="top"
|
||||||
MENU_MARGIN_Y=40
|
MENU_MARGIN_Y=40
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
JGWIDTH=500
|
JGWIDTH=500
|
||||||
#MENU_HEIGHT_MAX=600
|
MENU_HEIGHT_MAX=600
|
||||||
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
||||||
[ -z $jgmenu_use_borders ] && menu_border=0
|
[ -z $jgmenu_use_borders ] && menu_border=0
|
||||||
|
|
||||||
|
|
|
@ -8,22 +8,22 @@ case $LANG in
|
||||||
pl*)
|
pl*)
|
||||||
LNGDIR="pl"
|
LNGDIR="pl"
|
||||||
TYPE_TO_SEARCH="pisz aby wyszukać"
|
TYPE_TO_SEARCH="pisz aby wyszukać"
|
||||||
ME="MB helper (to menu)"
|
ME="Paleta komend (to menu)"
|
||||||
EDIT="Dostosuj to menu"
|
EDIT="Dostosuj..."
|
||||||
RESET="Przywróć domyślne"
|
RESET="Przywróć domyślne"
|
||||||
;;
|
;;
|
||||||
es*)
|
es*)
|
||||||
LNGDIR="en"
|
LNGDIR="en"
|
||||||
TYPE_TO_SEARCH="type to search"
|
TYPE_TO_SEARCH="type to search"
|
||||||
ME="MBhelper (this menu)"
|
ME="CMD Palette (this menu)"
|
||||||
EDIT="Edit this menu"
|
EDIT="Edit..."
|
||||||
RESET="Reset to default"
|
RESET="Reset to default"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
LNGDIR="en"
|
LNGDIR="en"
|
||||||
TYPE_TO_SEARCH="type to search"
|
TYPE_TO_SEARCH="type to search"
|
||||||
ME="MBhelper (this menu)"
|
ME="CND Palette (this menu)"
|
||||||
EDIT="Edit this menu"
|
EDIT="Edit..."
|
||||||
RESET="Reset to default"
|
RESET="Reset to default"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -42,8 +42,8 @@ MENU_HALIGN="center"
|
||||||
MENU_VALIGN="top"
|
MENU_VALIGN="top"
|
||||||
MENU_MARGIN_Y=40
|
MENU_MARGIN_Y=40
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
JGWIDTH=500
|
JGWIDTH=400
|
||||||
#MENU_HEIGHT_MAX=600
|
MENU_HEIGHT_MAX=600
|
||||||
|
|
||||||
|
|
||||||
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
||||||
|
@ -53,10 +53,11 @@ mkconfigfile
|
||||||
|
|
||||||
cat <<EOF > ${MENU_ITEMS}
|
cat <<EOF > ${MENU_ITEMS}
|
||||||
@search,,25,15,292,20,4,left,top,auto,#262626,"""<big></big> <i>$TYPE_TO_SEARCH</i>"""
|
@search,,25,15,292,20,4,left,top,auto,#262626,"""<big></big> <i>$TYPE_TO_SEARCH</i>"""
|
||||||
. $CSVFILE
|
|
||||||
^sep($ME)
|
^sep($ME)
|
||||||
$EDIT,mbhelper edit
|
$EDIT,mbhelper edit
|
||||||
${TODEFAULT}
|
${TODEFAULT}
|
||||||
|
. $CSVFILE
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
@ -65,7 +66,6 @@ jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
fi
|
fi
|
||||||
printf '%s\n' "${out[@]}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
edit() {
|
edit() {
|
||||||
|
|
Loading…
Reference in New Issue