rofi fontawesome
1.0.0
이 글꼴 멋진 아이콘 목록을 생성하여 ROFI, XCLIP 및 XDOTOOL을 사용하는 빠른 검색/선택 도구로 사용했습니다.
사용 가능한 3 개의 목록이 있습니다.
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
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
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자신의 쉘 스크립트를 작성하고 원하는대로하십시오.