Improve asciinema session recording

This commit is contained in:
Tobias Reisinger 2023-12-12 18:55:53 +01:00
parent 8d6ab690c4
commit 80a7334f59
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 26 additions and 6 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
export AUTOSTART_DISPLAY="Hyprland"
export ASCIINEMA_LOG="1"
export ASCIINEMA_LOG="video"
export MONITOR_PRIMARY="DisplayPort-0"
export MONITOR_SECONDARY="HDMI-A-0"

View file

@ -15,7 +15,7 @@ $cmd_duration\
[](bg:red fg:yellow)\
$status\
[](bg:white fg:red)\
$shell\
${custom.asciinema_log}$shell\
[](bg:cyan fg:white)\
$jobs\
[](cyan)
@ -36,6 +36,12 @@ show_milliseconds = true
style = "bg:yellow fg:black"
format = "[$duration]($style)"
[custom.asciinema_log]
command = 'case $ASCIINEMA_LOG in "raw") printf "" ;; "video") printf "" ;; esac'
when = ''' test -n "$ASCIINEMA_LOG" && test -n "$ASCIINEMA_REC" '''
style = "bg:white fg:black"
format = '[$output ]($style)'
[directory]
read_only = ""
truncation_length = 8