Add script to insert nerd font icon
Also added data file containing all the icons
This commit is contained in:
parent
7ddd08b2b9
commit
dceb0442a2
2689
dotfiles/data.org
Normal file
2689
dotfiles/data.org
Normal file
File diff suppressed because it is too large
Load Diff
@ -182,6 +182,28 @@ Finally, lock the screen using =i3lock=.
|
||||
fi
|
||||
#+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
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/scripts/org-protocol-capture-html.sh
|
||||
|
Loading…
Reference in New Issue
Block a user