New backup 2025-11-12 18:51:50
This commit is contained in:
parent
bc8bd52c2c
commit
e2fe6d77f8
2 changed files with 17 additions and 0 deletions
16
de/home/.local/bin/nf-list
Executable file
16
de/home/.local/bin/nf-list
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if ! which -s jq;then
|
||||
printf 'jq is not installed\n'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#exit 0
|
||||
|
||||
json_cache="${HOME}/.cache/nerfont-cheatsheet.json"
|
||||
|
||||
if [[ ! $(find "${json_cache}" -cmin -10080 -print 2>/dev/null) ]]; then
|
||||
curl 'https://raw.githubusercontent.com/ryanoasis/nerd-fonts/refs/heads/master/glyphnames.json' -o "${json_cache}"
|
||||
fi
|
||||
|
||||
jq -r 'to_entries[] | "\(.value.char) - \(.key)"' "${json_cache}" | tail +2 | wofi --dmenu | awk '{print $1}' | wl-copy
|
||||
|
|
@ -56,3 +56,4 @@
|
|||
.XCompose
|
||||
.config/sway-profiles-rs
|
||||
.config/mc-server-info
|
||||
.local/bin/nf-list
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue