ArchLabs Linux

Rofi copy/paste Font Awesome

Hi all, I come today with a bit straight way to copy/paste icons in your different config files. It’s a curl link.
Dependencies: curl, xdotool, xclip and of course rofi. To copy just select the desired icon press Enter and there you go.

echo -n "<i class='fa fa-$(curl -s https://raw.githubusercontent.com/wstam88/rofi-fontawesome/master/icon-list.txt | rofi -dmenu -i -markup-rows -p "" -columns 6 -width 100 -location 1 -lines 20 -bw 2 -yoffset -2 | cut -d\' -f2 )'></i>" | xclip -selection clipboard && xdotool key ctrl+shift+v

5 Likes

Nice work, thanks for sharing.

Nicee @archus . Keep it on .