fontawesome icon list for rofi dmenu . mirror of https://github.com/wstam88/rofi-fontawesome
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Wesley Stam 5157b0d5b4 Updated icon lists 1 year ago
fontawesome-menu Updated icon lists 1 year ago
README.md added FontAwesome 5 list and script 2 years ago
example.gif Added: example.gif 2 years ago
fa5-icon-list-tags.txt Updated icon lists 1 year ago
fa5-icon-list.txt Updated icon lists 1 year ago
icon-list.txt added icon list 2 years ago
unicode-list.txt Added: unicode list 2 years ago

README.md

example

Font Awesome icon list for Rofi

I generated this Font Awesome icon lists to be used as a quick search/select tool utilizing rofi, xclip and xdotool.

There are 3 lists available:

  • Default for pasting the icon class
  • Unicode for pasting the unicode
  • f5-icon-list.txt same as Default, but updated for Font Awesome 5 Free and without colors.

Requirements

  • Obviously you will need Rofi.
  • The actual Font Awesome font
  • A CLI clipboard utility like xclip, xsel or pbpaste.
  • xdotool (or another tool to simulate keyboard input and mouse activity)

Examples

Simple

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

Quick and dirty

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

Add icon to clipboard (f5-icon-list)

options='-columns 6 -width 100 -lines 20 -bw 2 -yoffset -2 -location 1'

selected=$(\
  cat f5-icon-list.txt \
    | rofi -dmenu -i -markup-rows \
    ${options}
    -p "Select icon: ")

# exit if nothing is selected
[[ -z $selected ]] && exit

echo -ne $(echo "$selected" |\
  awk -F';' -v RS='>' '
    NR==2{sub("&#x","",$1);print "\\u" $1;exit}'
) |  xclip -selection clipboard

Compose your own shell script and do as you like.

Use fontawesome-menu script