From 7b3ace252c3ecf555f6b7cff606bf0c35591dbc5 Mon Sep 17 00:00:00 2001 From: Ian Adam Naval Date: Fri, 24 Apr 2015 13:12:26 -0400 Subject: [PATCH] Replace gnome-screenshot with teiler --- i3/i3.dotfile/config | 2 +- teiler/teiler.configdir/config | 104 +++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 teiler/teiler.configdir/config diff --git a/i3/i3.dotfile/config b/i3/i3.dotfile/config index f01fc1e..b9b87c6 100644 --- a/i3/i3.dotfile/config +++ b/i3/i3.dotfile/config @@ -144,7 +144,7 @@ bindsym XF86LaunchA exec --no-startup-id rofi -show window bindsym XF86Explorer exec --no-startup-id rofi -show run bindsym Mod1+Tab exec --no-startup-id rofi -show window -bindsym Print exec gnome-screenshot -i +bindsym Print exec teiler # resize window (you can also use the mouse for that) mode "resize" { diff --git a/teiler/teiler.configdir/config b/teiler/teiler.configdir/config new file mode 100644 index 0000000..ed5e1d8 --- /dev/null +++ b/teiler/teiler.configdir/config @@ -0,0 +1,104 @@ +##### 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=$HOME/Pictures/Screenshots +vid_path=$HOME/Videos/Screencasts +paste_path=$HOME/Pictures/Paste + +# some distibutions rename the gdbar binary to dzen2-gdbar +# set it here, accordingly +gdbar=gdbar + +# editor to be used +editor=gimp + +# 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=scp +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=https://host.example.com + +# 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=ratte +scp_path_img=/srv/sites/ianonavy.com/files +scp_path_vid=/srv/sites/ianonavy.com/files +scp_path_paste=/srv/sites/ianonavy.com/files +http_img=http://files.ianonavy.com +http_vid=http://files.ianonavy.com +http_paste=http://files.ianonavy.com + + + +# 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=800x600 + +# 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="-lines 25"