nerd-fonts/bin/scripts/tests.sh

21 lines
703 B
Bash
Raw Normal View History

2018-07-09 16:20:40 +02:00
#!/usr/bin/env bash
2023-06-04 22:32:30 +02:00
# Nerd Fonts Version: 3.0.2
# Script Version: 1.0.1
clear
echo "Click to start"
# Window geometry
# source: https://www.maketecheasier.com/record-screen-as-animated-gif-ubuntu/
XWININFO=$(xwininfo)
2018-01-13 04:20:52 +01: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")
2018-01-13 04:20:52 +01:00
byzanz-record -c --exec=./test-fonts.sh --x="$X" --y="$Y" --width="$W" --height="$H" "rec3.gif"
convert -coalesce "rec3.gif" "results/nerd-fonts.png"
convert -append "$(ls -v results/*.png)" ./test-combined.png