Improve asciinema session recording
This commit is contained in:
parent
8d6ab690c4
commit
80a7334f59
3 changed files with 26 additions and 6 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue