espanso pipe update
parent
dacd4082ba
commit
d386eec298
|
@ -32,7 +32,7 @@ esac
|
||||||
MENU_ITEMS=/tmp/espanso_list.csv
|
MENU_ITEMS=/tmp/espanso_list.csv
|
||||||
trap "rm -f $MENU_ITEMS" EXIT
|
trap "rm -f $MENU_ITEMS" EXIT
|
||||||
|
|
||||||
if [[ $(espanso status) =~ "not" ]]
|
if ! pgrep -x "espanso" > /dev/null
|
||||||
then
|
then
|
||||||
echo "^sep(Espanso - text expander)" >/tmp/espanso_list.csv
|
echo "^sep(Espanso - text expander)" >/tmp/espanso_list.csv
|
||||||
echo "Espanso not running! Run it first by: espanso start,^term(espanso start)" >>/tmp/espanso_list.csv
|
echo "Espanso not running! Run it first by: espanso start,^term(espanso start)" >>/tmp/espanso_list.csv
|
||||||
|
@ -47,7 +47,10 @@ 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>\"\"\",xdotool type %s\n" $id "${string//</<}" $id >> $MENU_ITEMS
|
#printf "\"\"\"<b><tt>%-12s</tt></b> <i>%s</i>\"\"\",xdotool type %s\n" $id "${string//</<}" $id >> $MENU_ITEMS
|
||||||
|
string="${string//</<}"
|
||||||
|
string="${string//&/&}"
|
||||||
|
printf "\"\"\"<b><tt>%-12s</tt></b> <i>%s</i>\"\"\",xdotool type %s\n" $id "${string}" $id >> $MENU_ITEMS
|
||||||
done < <(espanso match list)
|
done < <(espanso match list)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue