Add script to insert nerd font icon

Also added data file containing all the icons
This commit is contained in:
Thomas Dehaeze 2020-03-28 11:09:15 +01:00
parent be765c952a
commit 85db48f29e
2 changed files with 2711 additions and 0 deletions

2689
dotfiles/data.org Normal file

File diff suppressed because it is too large Load Diff

View File

@ -182,6 +182,28 @@ Finally, lock the screen using =i3lock=.
fi fi
#+end_src #+end_src
* Icons Nerd Font
:PROPERTIES:
:header-args: :tangle ~/scripts/nerd-fonts.sh
:END:
#+begin_src bash
# Must have xsel installed to even show menu.
xsel -h 2>/dev/null || exit 1
chosen=$(cat ~/.local/share/nerd-fonts | rofi -dmenu -i -l 20 | sed "s/ .*//")
[ "$chosen" != "" ] || exit
# If you run this command with an argument, it will automatically insert the character.
if [ -n "$1" ]; then
xdotool key Shift+Insert
else
echo "$chosen" | tr -d '\n' | xsel -ib
dunstify "'$chosen' copied to clipboard." &
fi
#+end_src
* Org-Protocol-Capture-HTML * Org-Protocol-Capture-HTML
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/scripts/org-protocol-capture-html.sh :header-args: :tangle ~/scripts/org-protocol-capture-html.sh