3 # Merge both global and local charfiles
4 mkdir ~/.cache/charsel/ &
5 cp /usr/share/charsel/* ~/.cache/charsel/
6 cp ~/.local/share/charsel/* ~/.cache/charsel/
7 CHARDIR=~/.cache/charsel
15 # Put charfile into table
16 column -t $CHARDIR/$1 -N SHORT,CHAR -R SHORT,CHAR --output-separator ' | '
19 # Navigate to the right characther
20 OUTPUT=$(grep $INPUT $CHARDIR/$1 | cut -c 3)
25 # Print output, and copy to clipboard
27 echo $OUTPUT | xclip -selection clipboard