1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +00:00
config-fish/functions/gen-emoji-akkoma.fish

11 lines
471 B
Fish
Raw Normal View History

2024-08-21 09:45:18 +00:00
which magick --skip-functions >/dev/null 2>/dev/null
if [ $status -eq 0 ]
2024-08-21 20:07:01 +00:00
function gen-emoji-akkoma --wraps=magick
2024-08-21 19:59:02 +00:00
log-t "Creating" "Akkoma" "directory..."
2024-08-21 09:45:18 +00:00
command mkdir --parents "Akkoma"
2024-08-21 20:42:30 +00:00
log-d "Processing" "$argv[1]" "for Akkoma use..."
2024-10-28 11:40:50 +00:00
command magick -background none "$argv[1]"'[106x106]' -gravity 'center' -extent '106x106' $argv[2..-1] "Akkoma/$argv[1]"
2024-08-21 20:42:30 +00:00
log-t "Done! Emoji added to the" "Akkoma" "directory!"
2024-08-21 09:45:18 +00:00
end
end