diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-26 14:59:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-26 14:59:09 +0200 |
commit | f62eca657a79ef81089f3c34cdf837d7463581db (patch) | |
tree | b8bdf542c8bee229c51e9cdcaf150d68f6d2e365 /dmenu/unicode.d/conv | |
parent | Add setkeys and setres (diff) | |
download | dotfiles-f62eca657a79ef81089f3c34cdf837d7463581db.tar.gz dotfiles-f62eca657a79ef81089f3c34cdf837d7463581db.tar.bz2 dotfiles-f62eca657a79ef81089f3c34cdf837d7463581db.tar.xz |
Add ipa, man, and unicode scripts
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-x | dmenu/unicode.d/conv | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dmenu/unicode.d/conv b/dmenu/unicode.d/conv new file mode 100755 index 0000000..ca8fb35 --- /dev/null +++ b/dmenu/unicode.d/conv @@ -0,0 +1,8 @@ +#!/usr/bin/python3 +try: + while True: + cols = input().split('\t') + if len(cols) == 2 and '<' not in cols[1] and cols[0] and all(c in '0123456789abcdefABCDEF' for c in cols[0]): + print(chr(int(cols[0], 16)) + ' ' + cols[0] + ' ' + cols[1]) +except EOFError: + pass |