sh
brew install t-rec
sh
sudo port selfupdate
sudo port install t-rec
NOTE t-rec
depends on imagemagick
.
sh
brew install imagemagick
cargo install -f t-rec
NOTE -f
just makes sure the latest version is installed
sh
sudo apt-get install imagemagick
wget https://github.com/sassman/t-rec-rs/releases/download/v0.5.0/t-rec_0.5.0_amd64.deb
sudo dpkg -i t-rec_0.5.0_amd64.deb
TL;DR:
sh
sudo snap install t-rec --classic
/snap/bin/t-rec --version
t-rec 0.4.3
t-rec
can be installed from available AUR packages using an AUR helper. For example,
paru -S t-rec
If you prefer, you can clone the AUR packages and then compile them with makepkg. For example,
git clone https://aur.archlinux.org/t-rec.git
cd t-rec
makepkg -si
sh
sudo apt-get install libx11-dev imagemagick
cargo install -f t-rec
| tested on those distros |
|-------------------------|
| ubuntu 20.10 on GNOME |
| |
| ubuntu 20.10 on i3wm |
|
|
| linux mint 20 on cinnamon |
|
|
| ArcoLinux 5.4 on Xfwm4 |
|
|
sh
t-rec
or with specifying a different program to launch
sh
t-rec /bin/sh
```sh t-rec --help t-rec 0.5.0 Sven Assmann sven.assmann.it@gmail.com Blazingly fast terminal recorder that generates animated gif images for the web written in rust.
USAGE: t-rec [FLAGS] [OPTIONS] [shell or program to launch]
FLAGS: -h, --help Prints help information -l, --ls-win If you want to see a list of windows available for recording by their id, you can set env var 'WINDOWID' to record this specific window only -n, --natural If you want a very natural typing experience and disable the idle detection and sampling optimization -q, --quiet Quiet mode, suppresses the banner: 'Press Ctrl+D to end recording' -V, --version Prints version information -v, --verbose Enable verbose insights for the curious -m, --video Generates additionally to the gif a mp4 video of the recording -M, --video-only Generates only a mp4 video and not gif
OPTIONS:
-b, --bg to specify the pause time at the end of the animation, that time the gif will show
the last frame
-s, --start-pause to specify the pause time at the start of the animation, that time the gif will
show the first frame
ARGS:
If you are not happy with the idle detection and optimization, you can disable it with the -n
or --natural
parameter.
By doing so, you would get the very natural timeline of typing and recording as you do it.
In this case there will be no optimizations performed.
In order to disable the drop shadow border decor you have to pass -p none
as an argument. If your only want to change
the color of the background you can use -b black
for example to have a black background.
You can record not only the terminal but also every other window. There 2 ways to do so:
1) abuse the env var TERM_PROGRAM
like this:
- for example lets record a window 'Google Chrome'
- make sure chrome is running and visible on screen
```sh TERM_PROGRAM="google chrome" t-rec
Frame cache dir: "/var/folders/m8/084p1v0x4770rpwpkrgl5b6h0000gn/T/trec-74728.rUxBx3ohGiQ2" Recording window: "Google Chrome 2" Press Ctrl+D to end recording
```
this is how it looks then:
2) use the env var WINDOWID
like this:
- for example let's record a VSCode
window
- figure out the window id program, and make it
- make sure the window is visible on screen
- set the variable and run t-rec
```sh t-rec --ls-win | grep -i code Code | 27600
WINDOWID=27600 t-rec
Frame cache dir: "/var/folders/m8/084p1v0x4770rpwpkrgl5b6h0000gn/T/trec-77862.BMYiHNRWqv9Y" Press Ctrl+D to end recording
```
this is how it looks then:
To contribute to t-rec you can either checkout existing issues labeled with good first issue
or open a new issue and describe your problem.
Also every PR is welcome. Support for Linux and Windows needs to be done.