dotfiles

My personal dotfiles 💠️

mathpick (331B)

      1 #!/bin/sh
      2 # Select mathematical characters with dmenu
      3 
      4 chosen=$(cut -d ';' -f1 ~/.local/share/math-symbols | dmenu -i -l 20 -fn 'IBM Plex Mono:bold' -nb '#282a36' -nf '#f1f1f0' -sb '#41a2d3'| sed "s/ .*//")
      5 
      6 [ -z "$chosen" ] && exit
      7 
      8 printf '%s' "$chosen" | xclip -selection clipboard
      9 notify-send "'$chosen' copied to clipboard" &