2018-07-09 17:20:40 +03:00
|
|
|
#!/usr/bin/env bash
|
2023-01-24 15:56:06 +00:00
|
|
|
# Nerd Fonts Version: 2.3.3
|
2018-03-03 14:14:22 -05:00
|
|
|
# Script Version: 1.0.0
|
2017-04-21 19:13:56 -04:00
|
|
|
|
|
|
|
clear
|
|
|
|
echo "Click to start"
|
|
|
|
|
|
|
|
# Window geometry
|
|
|
|
# source: https://www.maketecheasier.com/record-screen-as-animated-gif-ubuntu/
|
|
|
|
XWININFO=$(xwininfo)
|
2018-01-12 22:20:52 -05:00
|
|
|
read -r X < <(awk -F: '/Absolute upper-left X/{print $2}' <<< "$XWININFO")
|
|
|
|
read -r Y < <(awk -F: '/Absolute upper-left Y/{print $2}' <<< "$XWININFO")
|
|
|
|
read -r W < <(awk -F: '/Width/{print $2}' <<< "$XWININFO")
|
|
|
|
read -r H < <(awk -F: '/Height/{print $2}' <<< "$XWININFO")
|
2017-04-21 19:13:56 -04:00
|
|
|
|
2018-01-12 22:20:52 -05:00
|
|
|
byzanz-record -c --exec=./test-fonts.sh --x="$X" --y="$Y" --width="$W" --height="$H" "rec3.gif"
|
2017-04-21 19:13:56 -04:00
|
|
|
|
|
|
|
convert -coalesce "rec3.gif" "results/nerd-fonts.png"
|
2018-01-12 22:20:52 -05:00
|
|
|
convert -append $"(ls -v results/*.png)" ./test-combined.png
|
2017-04-21 19:13:56 -04:00
|
|
|
|