Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Created June 22, 2015 18:13
Show Gist options
  • Save cirrusUK/64ca03e0d48f326577de to your computer and use it in GitHub Desktop.
Save cirrusUK/64ca03e0d48f326577de to your computer and use it in GitHub Desktop.
teiler configuration file
##### teiler configuration file ######
# general variables
backend=rofi
slop_color="255,0,0"
slop_border=2
hidecursor=yes
# the path where images, videos and pastes should be saved
img_path=/mnt/INT2/pictures/shots
vid_path=/mnt/INT2/video/medialink
paste_path=/mnt/INT2/txt
# some distibutions rename the gdbar binary to dzen2-gdbar
# set it here, accordingly
gdbar=gdbar
# editor to be used
editor=leafpad
# Uploading & archiving options
# Possible Choices for ul: fb, scp, s3, imgur (imgur does not support videos)
# Possible Choices for paste_ul: fb, scp, ix
#
# If you don't want a local history of images/videos,
# set archive_img/archive_vid to "0"
# keep in mind, that imgur does not support videos
#
ul=scp
paste_ul=ix
archive_vid=1
archive_img=1
archive_paste=0
upload_vid=0
# filebin history
# for filebin history to work, you need to set your host here:
#filebin_host=http://192.168.1.33:/srv/http/misc
# For scp you need to provide the actual path on your server
# where your files should be stored
# this path normally should be within a http domain.
# also set the actual URL to the directory
scp_host=alarmpi
scp_path_img=/srv/http/misc
scp_path_vid=/srv/http/misc
scp_path_paste=/srv/http/misc
http_img=/srv/http/misc
http_vid=/srv/http/misc
http_paste=/srv/http/misc
# s3 options
# same as scp options. set an actual path within your bucket, where
# files should be stored. Also set the URL to your directories.
s3_bucket=
s3_path_img=path/to/images
s3_path_vid=path/to/videos
s3_path_paste=path/to/pastes
s3_http_img=http://rasi-teiler.s3-website-eu-west-1.amazonaws.com/path/to/images
s3_http_vid=http://rasi-teiler.s3-website-eu-west-1.amazonaws.com/path/to/videos
s3_http_paste=http://rasi-teiler.s3-website-eu-west-1.amazonaws.com/path/to/pastes
# Screencast options
# Resolution to change to when recording:
res=1280x720
# Ffmpeg settings
# Possible encoder options: libav and ffmpeg
encoder=ffmpeg
encopts="-r 30 -vcodec libx264 -pix_fmt yuv420p -s $res -acodec libmp3lame"
rect_encopts="-r 30 -c:v libx264 -preset slow -crf 18 -c:a libvorbis"
ffaudio="-f alsa -ac 2 -i pulse"
# record indicator
rec_text="capturing..."
rec_w=100
rec_x=3400
rec_y=0
rec_font=PragmataPro-10
rec_nf=\#FFFFFF
rec_sf=\#000000
# Normally you don't want to change anything here!
SCREENCAST_PIDFILE=/tmp/$USER-teiler-screencast.pid
INDICATOR_PIDFILE=/tmp/$USER-teiler-indicator.pid
time=1000
namekey=teiler
random_string=$(date +%s | sha256sum | base64 | head -c 4 ; echo)
img_filemask=$random_string
vid_filemask=$random_string
paste_filemask=$random_string
###### rofi options ######
# here you can override options for rofi. normally rofi options
# are read from ~/.Xresources, so setting options there is recommended.
# you can dump options for ~/.Xresources with "rofi -dump-xresources"
# rofiopts="-border 2 -width 35 -lines 40 -padding 12"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment