ROFI的字体很棒的图标列表
我生成了此字体很棒的图标列表,用于使用ROFI,XCLIP和XDOTOOL的快速搜索/选择工具。
有3个可用列表:
- 粘贴图标类的默认值
- 粘贴Unicode的Unicode
- f5-icon-list.txt与默认值相同,但更新了字体Awesome 5免费且无颜色。
要求
- 显然,您需要ROFI。
- 实际字体很棒的字体
- CLI剪贴板实用程序,例如XCLIP,XSEL或PBPASTE。
- Xdotool(或其他用于模拟键盘输入和鼠标活动的工具)
例子
简单的
curl -s https://raw.g*ithubu*ser*content.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.g*ithubu*ser*content.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
将图标添加到剪贴板(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
使用Shell脚本(推荐)
撰写自己的外壳脚本,并按照自己的意愿进行。
