From 27f5fb42c957553705fb1c1b5cdf8bd134af7e5f Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 11 Feb 2017 13:30:37 +0100 Subject: [PATCH] Add teiler configuration --- tools/misc/teiler/config | 78 ++++++++++++++++++++++++++ tools/misc/teiler/profiles/mp4-noaudio | 8 +++ tools/misc/teiler/profiles/mp4-pulse | 8 +++ tools/misc/teiler/profiles/s3 | 9 +++ tools/misc/teiler/profiles/scp | 9 +++ 5 files changed, 112 insertions(+) create mode 100644 tools/misc/teiler/config create mode 100644 tools/misc/teiler/profiles/mp4-noaudio create mode 100644 tools/misc/teiler/profiles/mp4-pulse create mode 100644 tools/misc/teiler/profiles/s3 create mode 100644 tools/misc/teiler/profiles/scp diff --git a/tools/misc/teiler/config b/tools/misc/teiler/config new file mode 100644 index 0000000..8bcb06a --- /dev/null +++ b/tools/misc/teiler/config @@ -0,0 +1,78 @@ + +##### teiler configuration file ###### + +# general variables + +# the path where images, videos and pastes should be saved +img_path=$HOME/Bilder/Screenshots +vid_path=$HOME/Videos/Screencasts +paste_path=$HOME/Dokumente/Pastes + +# set viewer for images and videos plus editor for images +viewer=geeqie +editor=pinta +player=vlc + +# Hitting Enter will upload +always_ul=1 + +# Uploading options +# Possible Choices for img_ul: fb, scp, s3, imgur +# Possible Choices for vid_ul: fb, scp, s3 +# Possible Choices for paste_ul: fb, scp, ix +img_ul=imgur +vid_ul=fb +paste_ul=ix + +# Screencast options +# Resolution to change to when recording in fullscreen +#res=800x600 + +# If you use a custom rate for X, set it here. +# rate=120 + +# Profile to use for screencasts +# profiles are stored in $HOME/.config/teiler/profiles +# teiler ships with 3 profiles atm. mp4-pulse, mp4-noaudio +# and webm-noaudio +# You can create your own profiles, but changes to existing profiles +# will be overwritten on startup +profile="mp4-pulse" + +# hotkeys +upload="Alt+1" +noupload="Alt+2" +delayup="Alt+3" +delaysave="Alt+4" + +view="Alt+1" +historyupload="Alt+2" +edit="Alt+3" +clip="Alt+4" + + +# Normally you don't want to change anything here! +SCREENCAST_PIDFILE=/tmp/$USER-teiler-screencast.pid +namekey=teiler +random_string=$(date +'%Y-%m-%d-%H%M%S') +img_filemask=img-$random_string.png +paste_filemask=txt-$random_string.txt + +# video filemask is without extension, since it gets the extension +# from set profile +vid_filemask=vid-$random_string + +help_color="#0C73C2" +slop_color="255,0,0" +slop_border=2 +hidecursor=yes +# slop options +slop_border=1 +slop_color="255,0,0" +hidecursor=yes + +# 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" diff --git a/tools/misc/teiler/profiles/mp4-noaudio b/tools/misc/teiler/profiles/mp4-noaudio new file mode 100644 index 0000000..f8ab9e9 --- /dev/null +++ b/tools/misc/teiler/profiles/mp4-noaudio @@ -0,0 +1,8 @@ +# do not edit this file. instead make a copy under different name +# teiler will overwrite this file on start + +border="-show_region 1" +encopts="-r 30 -vcodec libx264 -pix_fmt yuv420p -s $res -movflags +faststart -acodec libmp3lame" +rect_encopts="-r 30 -c:v libx264 -preset slow -crf 18 -c:a libvorbis" +ext="mp4" +ffaudio="" diff --git a/tools/misc/teiler/profiles/mp4-pulse b/tools/misc/teiler/profiles/mp4-pulse new file mode 100644 index 0000000..d2441e7 --- /dev/null +++ b/tools/misc/teiler/profiles/mp4-pulse @@ -0,0 +1,8 @@ +# do not edit this file. instead make a copy under different name +# teiler will overwrite this file on start + +border="-show_region 1" +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" +ext="mp4" +ffaudio="-f alsa -ac 2 -i pulse" diff --git a/tools/misc/teiler/profiles/s3 b/tools/misc/teiler/profiles/s3 new file mode 100644 index 0000000..7f7a02b --- /dev/null +++ b/tools/misc/teiler/profiles/s3 @@ -0,0 +1,9 @@ +#!/bin/bash + +s3_bucket= +s3_path_img=path/to/images +s3_path_vid=path/to/videos +s3_path_paste=path/to/pastes +s3_http_img=http://S3_DOMAIN/path/to/images +s3_http_vid=http://S3_DOMAIN/path/to/videos +s3_http_paste=http://S3_DOMAIN/path/to/pastes diff --git a/tools/misc/teiler/profiles/scp b/tools/misc/teiler/profiles/scp new file mode 100644 index 0000000..c53584d --- /dev/null +++ b/tools/misc/teiler/profiles/scp @@ -0,0 +1,9 @@ +#!/bin/bash + +scp_host=HOSTNAME +scp_path_img=/path/to/images +scp_path_vid=/path/to/videos +scp_path_paste=/path/to/pastes +http_img=https://YOUR_DOMAIN/path/to/images +http_vid=https://YOUR_DOMAIN/path/to/videos +http_paste=https://YOUR_DOMAIN/path/to/pastes