Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified demo/blink.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions demo/blink.tape
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Type "cargo run -- -r -m countdown -d -c 1 --blink=on"
Enter
Sleep 0.2
Type "m"
Type ":::"
Show
Type "s"
Type " "
Sleep 4
Binary file modified demo/countdown-max.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/countdown.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 4 additions & 8 deletions demo/countdown.tape
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,18 @@ Set Margin 1
# --- START ---
Set LoopOffset 4
Hide
Type "cargo run -- -r -d -c 10:00"
Type "cargo run -- -r -d -c 10:00 --blink=on"
Enter
Sleep .2
Type "m" # hide menu
Show
# --- COUNTDOWN ---
Sleep .5
Type "s"
Sleep 1.4
Type "s"
Sleep 0.3
Type "s"
Sleep 0.3
Type " "
Sleep 2
Type "e"
Sleep 0.1
Down@10ms 65
Sleep 0.1
Type "s"
Sleep 3
Sleep 5
Binary file modified demo/decis.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/decis.tape
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Sleep .2
Type "m" # hide menu
Show
# --- STYLES ---
Type "s"
Type " "
Sleep 0.2
Type@0.4s "......."
Sleep 0.2
Binary file modified demo/event.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/local-time-footer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/local-time.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/local-time.tape
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Set Margin 1
# --- START ---
Set LoopOffset 4
Hide
Type "cargo run -- -m l"
Type "cargo run -- -r -m l"
Enter
Sleep .2
Type "m" # hide menu
Expand Down
Binary file modified demo/menu.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/pomodoro.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions demo/pomodoro.tape
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Type "m" # hide menu
Show
# --- POMODORO WORK ---
Sleep .5
Type "s" # start
Type " " # start
Sleep 2.3
Type "e"
Sleep 0.2
Expand All @@ -31,7 +31,7 @@ Sleep 4
# --- POMODORO PAUSE ---
Ctrl+Right
Sleep 0.5
Type "s"
Type " "
Sleep 2.3
Type "e"
Sleep 0.2
Expand Down
Binary file modified demo/style.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/style.tape
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Type "m" # hide menu
Show
# --- STYLES ---
Sleep 0.5
Type "s"
Type " "
Sleep 0.5
Type@0.7s ",,,,,,"
Sleep 1
Binary file modified demo/timer-max.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/timer-max.tape
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Down ## ddd
Up 2
Type "."
Type "s" # save
Type "s" # start to reach DONE
Type " " # start to reach DONE
Sleep 2s
# --- SCREENSHOT ---
Screenshot demo/timer-max.png
Expand Down
Binary file modified demo/timer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions demo/timer.tape
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ Sleep 0.2
Type "m" # hide menu
Show
# --- TIMER ---
Type "s"
Sleep 1.4
Type "s"
Sleep 0.3
Type "s"
Sleep 0.3
Type " "
Sleep 2
Type "e"
Sleep 0.2
Up@30ms 57
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,39 @@
CARGO_BUILD_RUSTFLAGS = "-C target-feature=+crt-static";
});

vhs = pkgs.buildGoModule (finalAttrs: {
pname = "vhs";
version = "0.11.0";

src = pkgs.fetchFromGitHub {
owner = "charmbracelet";
repo = "vhs";
tag = "v${finalAttrs.version}";
# hash = nixpkgs.lib.fakeSha256;
hash = "sha256-VOiI+ddiax04QtCcDr6ze53kd/HHGbfQE3j/32iq4Ro=";
};

# vendorHash = nixpkgs.lib.fakeSha256;
vendorHash = "sha256-cgKLYUATtn4hMdIOXZe9JWYNUOrX3S6BDfvS+rIWDfM=";

nativeBuildInputs = [pkgs.makeBinaryWrapper];

ldflags = [
"-s"
"-w"
"-X=main.Version=${finalAttrs.version}"
];

postInstall = ''
wrapProgram $out/bin/vhs --prefix PATH : ${
pkgs.lib.makeBinPath (
[pkgs.ffmpeg pkgs.ttyd]
++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isLinux [pkgs.chromium]
)
}
'';
});

# Windows cross-compilation build
# @see https://crane.dev/examples/cross-windows.html
windowsBuild = let
Expand Down Expand Up @@ -74,6 +107,7 @@
packages =
[
toolchain
vhs
pkgs.just
pkgs.nixd
pkgs.alejandra
Expand Down
Loading