Skip to content

Commit

Permalink
Set up a global config and alias for terminalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Aug 31, 2018
1 parent c26efe3 commit c252729
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 0 deletions.
1 change: 1 addition & 0 deletions bashrc.d/aliases.bash
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ alias ll='exa -l'
alias ls='exa'
alias n='npx --no-install'
alias ras='bin/rails server -b 0.0.0.0 -p 3000'
alias record="npx terminalizer --config $(readlink $HOME/.terminalizer/config.yml) record"
alias rgi="rg $1 -g '!*.lock'"
alias secret="ruby -rsecurerandom -e 'puts SecureRandom.hex(64)'"
alias top='top -s 5 -o cpu -stats pid,user,command,cpu,rsize,vsize,threads,state'
Expand Down
108 changes: 108 additions & 0 deletions terminalizer/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Specify a command to be executed
# like `/bin/bash -l`, `ls`, or any other commands
# the default is bash for Linux
# or powershell.exe for Windows
command: null

# Specify the current working directory path
# the default is the current working directory path
cwd: null

# Export additional ENV variables
env:
recording: true

# Explicitly set the number of columns
# or use `auto` to take the current
# number of columns of your shell
cols: 80

# Explicitly set the number of rows
# or use `auto` to take the current
# number of rows of your shell
rows: 30

# Amount of times to repeat GIF
# If value is -1, play once
# If value is 0, loop indefinitely
# If value is a positive number, loop n times
repeat: 0

# Quality
# 1 - 100
quality: 100

# Delay between frames in ms
# If the value is `auto` use the actual recording delays
frameDelay: auto

# Maximum delay between frames in ms
# Ignored if the `frameDelay` isn't set to `auto`
# Set to `auto` to prevent limiting the max idle time
maxIdleTime: 2000

# The surrounding frame box
# The `type` can be null, window, floating, or solid`
# To hide the title use the value null
# Don't forget to add a backgroundColor style with a null as type
frameBox:
type: solid
title: null
style:
backgroundColor: "#323232"
border: 0px black solid
# boxShadow: none
# margin: 0px

# Add a watermark image to the rendered gif
# You need to specify an absolute path for
# the image on your machine or a URL, and you can also
# add your own CSS styles
watermark:
imagePath: null
style:
position: absolute
right: 15px
bottom: 15px
width: 100px
opacity: 0.9

# Cursor style can be one of
# `block`, `underline`, or `bar`
cursorStyle: block

# Font family
# You can use any font that is installed on your machine
# in CSS-like syntax
fontFamily: "Menlo, Monaco, Lucida Console, Ubuntu Mono, Monospace"

# The size of the font
fontSize: 18

# The height of lines
lineHeight: 1

# The spacing between letters
letterSpacing: 0

# Theme
theme:
background: "transparent"
foreground: "#fafafa"
cursor: "#c7c7c7"
black: "#2f2f2f"
red: "#d24938"
green: "#8dcb3c"
yellow: "#d5c45a"
blue: "#95c1e1"
magenta: "#d24d96"
cyan: "#3fbbc3"
white: "#e2ded1"
brightBlack: "#595959"
brightRed: "#e65c4b"
brightGreen: "#a3dd49"
brightYellow: "#ebdc70"
brightBlue: "#b4d9f4"
brightMagenta: "#e768ae"
brightCyan: "#58c5cd"
brightWhite: "#f9f7ec"

0 comments on commit c252729

Please sign in to comment.