Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save FelipeCortez/31b4da7f80d1edeff88512e42dbbf7ca to your computer and use it in GitHub Desktop.
Save FelipeCortez/31b4da7f80d1edeff88512e42dbbf7ca to your computer and use it in GitHub Desktop.
Inserting special characters with rofi
/usr/bin/env bash
line=$(echo "· interpunct|◊ diamond" | rofi -sep '|' -dmenu -p)
exit_code=$?
printf $line | bb -i '(println (str (ffirst *input*)))' | iconv -f UTF8 -t UTF16BE | xvkbd -utf16 -file -
# for debugging LE/BE iconv
# od -A x -t x1z -v
# babashka definitely is overkill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment