dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

unicodepick (315B)


      1 #!/bin/sh
      2 set -e
      3 
      4 symbols="$(grep -v '#' "${HOME}/.local/share/unicode-symbols.txt")"
      5 
      6 lines=10
      7 if [ -z "$TERM" ] || [ "$TERM" = linux ]; then
      8 	s="$(printf '%s' "$symbols" | dmenu -i -l "$lines" -fn PragmataPro-20)"
      9 else
     10 	s="$(printf '%s' "$symbols" | fzy -l "$lines")"
     11 fi
     12 
     13 printf '%s' "$s" | sed 's/ .*//' | xclip