Last active
May 8, 2022 11:45
-
-
Save Vonr/525a37c0909c7640654bd2950afaee84 to your computer and use it in GitHub Desktop.
NerdFont picker for rofi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # Requires: curl, htmlq, sed, grep, xargs, rofi, xclip | |
| ([ -f '/tmp/nerdfont-icons.md' ] \ | |
| || (curl -s 'https://raw.githubusercontent.com/ryanoasis/nerd-fonts/gh-pages/_posts/2017-01-04-icon-cheat-sheet.md' \ | |
| | htmlq --text '#glyphCheatSheet' \ | |
| | sed 's/\W//g' \ | |
| | grep . \ | |
| | sed 's/\(.*\)\(.\{4\}\)$/\2 \2 \1/g' \ | |
| | xargs -I {} printf '\u{}\n' \ | |
| > '/tmp/nerdfont-icons.md'))\ | |
| && rofi -dmenu -matching fuzzy < '/tmp/nerdfont-icons.md' \ | |
| | sed 's/ .*//g' \ | |
| | xclip -se c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment