Skip to content

Instantly share code, notes, and snippets.

@chrispetrou
Last active September 12, 2024 23:09
Show Gist options
  • Save chrispetrou/9f97efce2988eb03aea9c2f4733e5ffd to your computer and use it in GitHub Desktop.
Save chrispetrou/9f97efce2988eb03aea9c2f4733e5ffd to your computer and use it in GitHub Desktop.
bash script to generate previews with different themes from asciinema url
#!/bin/bash
# This is a small bash script that takes as input
# an asciinema public-video's id and produces all possible
# svgs using iterm2 themes using svg-term...
asciinema_id=$1
declare -a themes=("DimmedMonokai" "Pro" "Spiderman" "Twilight" "Hardcore" "Atom" "Hurtado" "SoftServer" "N0tch2k" "Borland" "Tomorrow Night" "Blazer" "Afterglow" "Lavandula" "Floraverse" "Spring" "LiquidCarbonTransparentInverse" "ENCOM" "Mathias" "MonaLisa" "Jellybeans" "Shaman" "Belafonte Day" "C64" "WarmNeon" "CLRS" "Rippedcasts" "Royal" "Tomorrow Night Bright" "Espresso" "Harper" "Later This Evening" "Broadcast" "Smyck" "DotGov" "3024 Night" "IC_Orange_PPL" "Kibble" "WildCherry" "Darkside" "Hybrid" "Parasio Dark" "Espresso Libre" "Terminal Basic" "SpaceGray Eighties" "Solarized Darcula" "Thayer Bright" "Galaxy" "BirdsOfParadise" "Seafoam Pastel" "ToyChest" "Dark Pastel" "Grape" "Flat" "Belafonte Night" "Teerb" "LiquidCarbon" "NightLion v1" "PaulMillr" "Github" "OceanicMaterial" "IC_Green_PPL" "MaterialDark" "Argonaut" "Dracula" "Earthsong" "Monokai Soda" "AtomOneLight" "AlienBlood" "Misterioso" "Seti" "Chalk" "SpaceGray Eighties Dull" "Wombat" "Ciapre" "LiquidCarbonTransparent" "Material" "Molokai" "The Hulk" "Brogrammer" "IR_Black" "Spacedust" "Solarized Light" "FunForrest" "Vaughn" "Man Page" "Wryan" "AdventureTime" "idleToes" "Grass" "Novel" "Batman" "Jackie Brown" "Square" "Cobalt2" "Red Sands" "Tomorrow" "FrontEndDelight" "Pnevma" "Wez" "Solarized Dark Higher Contrast" "Ollie" "PencilDark" "Symfonic" "FishTank" "VibrantInk" "Duotone Dark" "Urple" "Tomorrow Night Blue" "Elemental" "Neopolitan" "Solarized Dark" "NightLion v2" "Neutron" "Glacier" "Cobalt Neon" "Sundried" "Zenburn" "Fideloper" "AtelierSulphurpool" "Hipster Green" "SeaShells" "Tomorrow Night Eighties" "Japanesque" "Highway" "SpaceGray" "Ocean" "3024 Day" "Obsidian" "Slate" "Piatto Light" "Treehouse" "Homebrew" "Medallion" "PencilLight" "Arthur" "Red Alert" "Flatland" "Solarized Dark (2)" "Desert" "CrayonPonyFish" "Chalkboard")
for theme in "${themes[@]}";do
svg-term --cast=$asciinema_id --out "$theme".svg --window --height 20 --no-cursor --profile "$theme" --term iterm2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment