diff --git a/app-config/firefox/alpine-monobiome-dark.xpi b/app-config/firefox/alpine-monobiome-dark.xpi index 869164a..acdaa5b 100644 Binary files a/app-config/firefox/alpine-monobiome-dark.xpi and b/app-config/firefox/alpine-monobiome-dark.xpi differ diff --git a/app-config/firefox/alpine-monobiome-light.xpi b/app-config/firefox/alpine-monobiome-light.xpi index af25ba0..8599c8a 100644 Binary files a/app-config/firefox/alpine-monobiome-light.xpi and b/app-config/firefox/alpine-monobiome-light.xpi differ diff --git a/app-config/firefox/alpine-monobiome.xpi b/app-config/firefox/alpine-monobiome.xpi index 113d7fa..59d7107 100644 Binary files a/app-config/firefox/alpine-monobiome.xpi and b/app-config/firefox/alpine-monobiome.xpi differ diff --git a/app-config/firefox/badlands-monobiome-dark.xpi b/app-config/firefox/badlands-monobiome-dark.xpi index 2c4f200..972ed59 100644 Binary files a/app-config/firefox/badlands-monobiome-dark.xpi and b/app-config/firefox/badlands-monobiome-dark.xpi differ diff --git a/app-config/firefox/badlands-monobiome-light.xpi b/app-config/firefox/badlands-monobiome-light.xpi index f24de8a..a844da2 100644 Binary files a/app-config/firefox/badlands-monobiome-light.xpi and b/app-config/firefox/badlands-monobiome-light.xpi differ diff --git a/app-config/firefox/badlands-monobiome.xpi b/app-config/firefox/badlands-monobiome.xpi index f873ce6..2d10a3f 100644 Binary files a/app-config/firefox/badlands-monobiome.xpi and b/app-config/firefox/badlands-monobiome.xpi differ diff --git a/app-config/firefox/chaparral-monobiome-dark.xpi b/app-config/firefox/chaparral-monobiome-dark.xpi index b78a946..f04a061 100644 Binary files a/app-config/firefox/chaparral-monobiome-dark.xpi and b/app-config/firefox/chaparral-monobiome-dark.xpi differ diff --git a/app-config/firefox/chaparral-monobiome-light.xpi b/app-config/firefox/chaparral-monobiome-light.xpi index d424746..9f7b995 100644 Binary files a/app-config/firefox/chaparral-monobiome-light.xpi and b/app-config/firefox/chaparral-monobiome-light.xpi differ diff --git a/app-config/firefox/chaparral-monobiome.xpi b/app-config/firefox/chaparral-monobiome.xpi index ceaf117..baa5f48 100644 Binary files a/app-config/firefox/chaparral-monobiome.xpi and b/app-config/firefox/chaparral-monobiome.xpi differ diff --git a/app-config/firefox/grassland-monobiome-dark.xpi b/app-config/firefox/grassland-monobiome-dark.xpi index 72a6d26..0027d4e 100644 Binary files a/app-config/firefox/grassland-monobiome-dark.xpi and b/app-config/firefox/grassland-monobiome-dark.xpi differ diff --git a/app-config/firefox/grassland-monobiome-light.xpi b/app-config/firefox/grassland-monobiome-light.xpi index 37d43f6..860379b 100644 Binary files a/app-config/firefox/grassland-monobiome-light.xpi and b/app-config/firefox/grassland-monobiome-light.xpi differ diff --git a/app-config/firefox/grassland-monobiome.xpi b/app-config/firefox/grassland-monobiome.xpi index 1e673c6..d834a6b 100644 Binary files a/app-config/firefox/grassland-monobiome.xpi and b/app-config/firefox/grassland-monobiome.xpi differ diff --git a/app-config/firefox/savanna-monobiome-dark.xpi b/app-config/firefox/savanna-monobiome-dark.xpi index 1eff63b..3dd3c7a 100644 Binary files a/app-config/firefox/savanna-monobiome-dark.xpi and b/app-config/firefox/savanna-monobiome-dark.xpi differ diff --git a/app-config/firefox/savanna-monobiome-light.xpi b/app-config/firefox/savanna-monobiome-light.xpi index 760280d..3f073f7 100644 Binary files a/app-config/firefox/savanna-monobiome-light.xpi and b/app-config/firefox/savanna-monobiome-light.xpi differ diff --git a/app-config/firefox/savanna-monobiome.xpi b/app-config/firefox/savanna-monobiome.xpi index 0643614..c598523 100644 Binary files a/app-config/firefox/savanna-monobiome.xpi and b/app-config/firefox/savanna-monobiome.xpi differ diff --git a/app-config/firefox/tundra-monobiome-dark.xpi b/app-config/firefox/tundra-monobiome-dark.xpi index 9d7bb97..431a795 100644 Binary files a/app-config/firefox/tundra-monobiome-dark.xpi and b/app-config/firefox/tundra-monobiome-dark.xpi differ diff --git a/app-config/firefox/tundra-monobiome-light.xpi b/app-config/firefox/tundra-monobiome-light.xpi index be537f5..e8ef245 100644 Binary files a/app-config/firefox/tundra-monobiome-light.xpi and b/app-config/firefox/tundra-monobiome-light.xpi differ diff --git a/app-config/firefox/tundra-monobiome.xpi b/app-config/firefox/tundra-monobiome.xpi index 0363ef5..433caa5 100644 Binary files a/app-config/firefox/tundra-monobiome.xpi and b/app-config/firefox/tundra-monobiome.xpi differ diff --git a/generate.sh b/scripts/generate.sh similarity index 78% rename from generate.sh rename to scripts/generate.sh index 4560d8d..2775595 100755 --- a/generate.sh +++ b/scripts/generate.sh @@ -1,3 +1,7 @@ +#!/usr/bin/env bash +# note: this script is not portable; to be run in the monobiome scripts/ +# directory (notice the `rm` invocations) + rm -rf app-config/* symconf -c templates/ generate -o app-config diff --git a/scripts/render.sh b/scripts/render.sh new file mode 100644 index 0000000..ee5c670 --- /dev/null +++ b/scripts/render.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +# usage: render.sh width height [extra kitty args...] +# useful for reproducible screenshots of terminal/vim setups + +set -euo pipefail +w=${1:?width}; h=${2:?height} +out="kitty-$(date +%Y%m%d-%H%M%S).png" +shift 2 || true + +# spawn a kitty window w/ a mark +title="kitty-$(date +%s%N)" +kitty --title "$title" "$@" & + +# create a targeted rule for the marked window and resize +sleep 2 +swaymsg "for_window [title=\"$title\"] mark --add $title, floating enable, resize set width ${w} px height ${h} px, move position center" >/dev/null + +# get the spawned window geometry +sleep 2 +geom=$(swaymsg -t get_tree | jq -r --arg t "$title" '.. | select(.name? == $t) | .rect | "\(.x),\(.y) \(.width)x\(.height)"') +wgeom=$(swaymsg -t get_tree | jq -r --arg t "$title" '.. | select(.name? == $t) | .window_rect | "\(.x),\(.y) \(.width)x\(.height)"') + +read gx gy _ < <(awk -F'[ ,x]' '{print $1,$2}' <<<"$geom") +read wx wy ww wh < <(awk -F'[ ,x]' '{print $1,$2,$3,$4}' <<<"$wgeom") +inner_geom="$((gx+wx)),$((gy+wy)) ${ww}x${wh}" + +echo title=$title +echo geom=$geom +echo out=$out + +# take a screenshot +mkdir -p "$(dirname "$out")" +grim -g "$inner_geom" "$out" +echo "saved: $out" + diff --git a/scripts/screens.sh b/scripts/screens.sh new file mode 100644 index 0000000..5f23081 --- /dev/null +++ b/scripts/screens.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +set -euo pipefail + +script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +render_script="$script_dir/render.sh" + +biomes=(alpine badlands chaparral savanna grassland tundra) +modes=(light dark) + +for biome in "${biomes[@]}"; do + for mode in "${modes[@]}"; do + symconf config -m "$mode" -s "default-$biome-monobiome" + sleep 5 + "$render_script" 800 600 nvim \ + +':highlight Cursor blend=100' \ + +':set guicursor=n:block-Cursor' \ + +':silent! setlocal nonumber nocursorline signcolumn=no foldcolumn=no' \ + examples/runner.py