From ba4e205e5427edf814fb910e699dd0d030f5e75f Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Tue, 21 Jan 2020 19:07:55 -0500 Subject: [PATCH] Addtions(rofi, teiler): moved from dmenu to rofi and from maimpick to teiler --- .config/rofi/config | 5 ++ .config/teiler/config | 74 ++++++++++++++++++++++++++++ .config/teiler/profiles/mp4-noaudio | 8 +++ .config/teiler/profiles/mp4-pulse | 8 +++ .config/teiler/profiles/webm-noaudio | 8 +++ .config/teiler/uploader/s3 | 9 ++++ .config/teiler/uploader/scp | 9 ++++ 7 files changed, 121 insertions(+) create mode 100644 .config/rofi/config create mode 100644 .config/teiler/config create mode 100644 .config/teiler/profiles/mp4-noaudio create mode 100644 .config/teiler/profiles/mp4-pulse create mode 100644 .config/teiler/profiles/webm-noaudio create mode 100644 .config/teiler/uploader/s3 create mode 100644 .config/teiler/uploader/scp diff --git a/.config/rofi/config b/.config/rofi/config new file mode 100644 index 00000000..271863cf --- /dev/null +++ b/.config/rofi/config @@ -0,0 +1,5 @@ +rofi.theme: /usr/share/rofi/themes/arthur.rasi +rofi.font: "Source Code Pro" 20 +rofi.modi: combi +rofi.combi-modi: window,run + diff --git a/.config/teiler/config b/.config/teiler/config new file mode 100644 index 00000000..d02e5ed8 --- /dev/null +++ b/.config/teiler/config @@ -0,0 +1,74 @@ +##### teiler configuration file ###### + +# rofi command. Make sure to have "$@" as last argument +_rofi () { + rofi -kb-accept-entry "!Return" "$@" +} + +# general variables + +# 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 + +# set viewer for images and videos plus editor for images +viewer=eog +editor=pinta +player=mpv + +# 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" +hidecursor=yes +# slop options +slop_border=1 +slop_color="255,0,0" +hidecursor=yes diff --git a/.config/teiler/profiles/mp4-noaudio b/.config/teiler/profiles/mp4-noaudio new file mode 100644 index 00000000..f8ab9e96 --- /dev/null +++ b/.config/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/.config/teiler/profiles/mp4-pulse b/.config/teiler/profiles/mp4-pulse new file mode 100644 index 00000000..d2441e7f --- /dev/null +++ b/.config/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/.config/teiler/profiles/webm-noaudio b/.config/teiler/profiles/webm-noaudio new file mode 100644 index 00000000..5aad1f04 --- /dev/null +++ b/.config/teiler/profiles/webm-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="-c:v vp8 -threads 2 -pix_fmt yuv420p -crf 30 -b:v 0 -s $res" +rect_encopts="-r 30 -c:v vp8 -threads 4 -pix_fmt yuv420p -crf 30 -b:v 0" +ext="webm" +ffaudio="" diff --git a/.config/teiler/uploader/s3 b/.config/teiler/uploader/s3 new file mode 100644 index 00000000..7f7a02b7 --- /dev/null +++ b/.config/teiler/uploader/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/.config/teiler/uploader/scp b/.config/teiler/uploader/scp new file mode 100644 index 00000000..c53584d9 --- /dev/null +++ b/.config/teiler/uploader/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