mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 06:44:22 +00:00
More scripts
This commit is contained in:
parent
2ee81cee13
commit
94f78b2df9
8 changed files with 48 additions and 18 deletions
|
@ -1,11 +1,10 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function gen-emoji-akkoma --wraps=magick
|
||||
log-d "Generating emojis for" "Akkoma (106x106)" "..."
|
||||
log-t "Creating" "Akkoma" "directory..."
|
||||
command mkdir --parents "Akkoma"
|
||||
log-t "Processing" "$argv[1]" "..."
|
||||
log-d "Processing" "$argv[1]" "for Akkoma use..."
|
||||
command magick -background none "$argv[1]" -resize "106x106^" -gravity center -extent 106x106 $argv[2..-1] "Akkoma/$argv[1]"
|
||||
log-s "Done! Emojis added to the" "Akkoma" "directory!"
|
||||
log-t "Done! Emoji added to the" "Akkoma" "directory!"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function gen-emoji-all
|
||||
log-i "Generating emojis for" "all platforms" "..."
|
||||
gen-emoji-akkoma $argv
|
||||
gen-emoji-discord $argv
|
||||
gen-emoji-telegram $argv
|
||||
log-s "Emojis generated for" "all platforms" "successfully!"
|
||||
end
|
||||
end
|
|
@ -1,11 +1,10 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function gen-emoji-discord --wraps=magick
|
||||
log-d "Generating emojis for" "Discord (128x128)" "..."
|
||||
log-t "Creating" "Discord" "directory..."
|
||||
command mkdir --parents "Discord"
|
||||
log-t "Processing" "$argv[1]" "..."
|
||||
log-d "Processing" "$argv[1]" "for Discord use..."
|
||||
command magick -background none "$argv[1]" -resize "128x128^" -gravity center -extent 128x128 $argv[2..-1] "Discord/$argv[1]"
|
||||
log-s "Done! Emojis added to the" "Discord" "directory!"
|
||||
log-t "Done! Emoji added to the" "Discord" "directory!"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,8 +3,8 @@ if [ $status -eq 0 ]
|
|||
function gen-emoji-telegram --wraps=magick
|
||||
log-t "Creating" "Telegram" "directory..."
|
||||
command mkdir --parents "Telegram"
|
||||
log-t "Processing" "$argv[1]" "..."
|
||||
log-d "Processing" "$argv[1]" "for Telegram use..."
|
||||
command magick -background none "$argv[1]" -resize "100x100^" -gravity center -extent 100x100 $argv[2..-1] "Telegram/$argv[1]"
|
||||
log-s "Done! Emojis added to the" "Telegram" "directory!"
|
||||
log-t "Done! Emoji added to the" "Telegram" "directory!"
|
||||
end
|
||||
end
|
||||
|
|
10
functions/gen-emojis-akkoma.fish
Normal file
10
functions/gen-emojis-akkoma.fish
Normal file
|
@ -0,0 +1,10 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function gen-emojis-akkoma
|
||||
for arg in $argv
|
||||
log-i "Processing" "$arg" "..."
|
||||
gen-emoji-akkoma "$arg"
|
||||
end
|
||||
log-s "All emojis generated successfully!"
|
||||
end
|
||||
end
|
12
functions/gen-emojis-all.fish
Normal file
12
functions/gen-emojis-all.fish
Normal file
|
@ -0,0 +1,12 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function gen-emojis-all
|
||||
for arg in $argv
|
||||
log-i "Processing" "$arg" "..."
|
||||
gen-emoji-akkoma "$arg"
|
||||
gen-emoji-discord "$arg"
|
||||
gen-emoji-telegram "$arg"
|
||||
end
|
||||
log-s "All emojis generated successfully!"
|
||||
end
|
||||
end
|
10
functions/gen-emojis-discord.fish
Normal file
10
functions/gen-emojis-discord.fish
Normal file
|
@ -0,0 +1,10 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function gen-emojis-discord
|
||||
for arg in $argv
|
||||
log-i "Processing" "$arg" "..."
|
||||
gen-emoji-discord "$arg"
|
||||
end
|
||||
log-s "All emojis generated successfully!"
|
||||
end
|
||||
end
|
10
functions/gen-emojis-telegram.fish
Normal file
10
functions/gen-emojis-telegram.fish
Normal file
|
@ -0,0 +1,10 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function gen-emojis-telegram
|
||||
for arg in $argv
|
||||
log-i "Processing" "$arg" "..."
|
||||
gen-emoji-telegram "$arg"
|
||||
end
|
||||
log-s "All emojis generated successfully!"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue