Created
March 2, 2021 11:47
-
-
Save FelipeCortez/31b4da7f80d1edeff88512e42dbbf7ca to your computer and use it in GitHub Desktop.
Inserting special characters with rofi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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