|
@@ -2,103 +2,71 @@
|
2
|
2
|
|
3
|
3
|
# general variables
|
4
|
4
|
|
5
|
|
-backend=rofi
|
6
|
|
-slop_color="255,0,0"
|
7
|
|
-slop_border=2
|
8
|
|
-hidecursor=yes
|
9
|
|
-
|
10
|
5
|
# the path where images, videos and pastes should be saved
|
11
|
6
|
img_path=$HOME/Pictures/Screenshots
|
12
|
7
|
vid_path=$HOME/Videos/Screencasts
|
13
|
8
|
paste_path=$HOME/Pictures/Paste
|
14
|
9
|
|
15
|
|
-# some distibutions rename the gdbar binary to dzen2-gdbar
|
16
|
|
-# set it here, accordingly
|
17
|
|
-gdbar=gdbar
|
18
|
|
-
|
19
|
|
-# editor to be used
|
|
10
|
+# set viewer for images and videos plus editor for images
|
|
11
|
+viewer=feh
|
20
|
12
|
editor=gimp
|
|
13
|
+player=vlc
|
|
14
|
+
|
|
15
|
+# Hitting Enter will upload
|
|
16
|
+always_ul=1
|
21
|
17
|
|
22
|
|
-# Uploading & archiving options
|
23
|
|
-# Possible Choices for ul: fb, scp, s3, imgur (imgur does not support videos)
|
|
18
|
+# Uploading options
|
|
19
|
+# Possible Choices for img_ul: fb, scp, s3, imgur
|
|
20
|
+# Possible Choices for vid_ul: fb, scp, s3
|
24
|
21
|
# Possible Choices for paste_ul: fb, scp, ix
|
25
|
|
-#
|
26
|
|
-# If you don't want a local history of images/videos,
|
27
|
|
-# set archive_img/archive_vid to "0"
|
28
|
|
-# keep in mind, that imgur does not support videos
|
29
|
|
-ul=scp
|
|
22
|
+img_ul=scp
|
|
23
|
+vid_ul=scp
|
30
|
24
|
paste_ul=scp
|
31
|
|
-archive_vid=1
|
32
|
|
-archive_img=1
|
33
|
|
-archive_paste=0
|
34
|
|
-upload_vid=0
|
35
|
|
-
|
36
|
|
-# filebin history
|
37
|
|
-# for filebin history to work, you need to set your host here:
|
38
|
|
-filebin_host=https://host.example.com
|
39
|
|
-
|
40
|
|
-# For scp you need to provide the actual path on your server
|
41
|
|
-# where your files should be stored
|
42
|
|
-# this path normally should be within a http domain.
|
43
|
|
-# also set the actual URL to the directory
|
44
|
|
-
|
45
|
|
-scp_host=ratte
|
46
|
|
-scp_path_img=/srv/sites/ianonavy.com/files
|
47
|
|
-scp_path_vid=/srv/sites/ianonavy.com/files
|
48
|
|
-scp_path_paste=/srv/sites/ianonavy.com/files
|
49
|
|
-http_img=http://files.ianonavy.com
|
50
|
|
-http_vid=http://files.ianonavy.com
|
51
|
|
-http_paste=http://files.ianonavy.com
|
52
|
|
-
|
53
|
|
-
|
54
|
|
-
|
55
|
|
-# s3 options
|
56
|
|
-# same as scp options. set an actual path within your bucket, where
|
57
|
|
-# files should be stored. Also set the URL to your directories.
|
58
|
|
-s3_bucket=
|
59
|
|
-s3_path_img=path/to/images
|
60
|
|
-s3_path_vid=path/to/videos
|
61
|
|
-s3_path_paste=path/to/pastes
|
62
|
|
-s3_http_img=http://rasi-teiler.s3-website-eu-west-1.amazonaws.com/path/to/images
|
63
|
|
-s3_http_vid=http://rasi-teiler.s3-website-eu-west-1.amazonaws.com/path/to/videos
|
64
|
|
-s3_http_paste=http://rasi-teiler.s3-website-eu-west-1.amazonaws.com/path/to/pastes
|
65
|
|
-
|
66
|
25
|
|
67
|
26
|
# Screencast options
|
68
|
27
|
# Resolution to change to when recording:
|
69
|
28
|
res=800x600
|
70
|
29
|
|
71
|
30
|
# Ffmpeg settings
|
72
|
|
-# Possible encoder options: libav and ffmpeg
|
|
31
|
+
|
|
32
|
+# set this to 1, if ffmpeg version is < 1.7.1
|
|
33
|
+ffmpeg_compat=0
|
73
|
34
|
encoder=ffmpeg
|
74
|
|
-encopts="-r 30 -vcodec libx264 -pix_fmt yuv420p -s $res -acodec libmp3lame"
|
75
|
|
-rect_encopts="-r 30 -c:v libx264 -preset slow -crf 18 -c:a libvorbis"
|
76
|
|
-ffaudio="-f alsa -ac 2 -i pulse"
|
|
35
|
+
|
|
36
|
+# Profile to use for screencasts
|
|
37
|
+# profiles are stored in $HOME/.config/teiler/profiles
|
|
38
|
+# teiler ships with 2 profiles atm. mp4-pulse and mp4-noaudio
|
|
39
|
+profile="mp4-pulse"
|
77
|
40
|
|
78
|
41
|
# record indicator
|
79
|
42
|
rec_text="capturing..."
|
80
|
43
|
rec_w=100
|
81
|
|
-rec_x=3400
|
82
|
|
-rec_y=0
|
83
|
|
-rec_font=PragmataPro-10
|
|
44
|
+rec_font=Sans Mono-10
|
84
|
45
|
rec_nf=\#FFFFFF
|
85
|
46
|
rec_sf=\#000000
|
86
|
47
|
|
87
|
|
-
|
88
|
48
|
# Normally you don't want to change anything here!
|
89
|
49
|
SCREENCAST_PIDFILE=/tmp/$USER-teiler-screencast.pid
|
90
|
50
|
INDICATOR_PIDFILE=/tmp/$USER-teiler-indicator.pid
|
91
|
|
-time=1000
|
92
|
51
|
namekey=teiler
|
93
|
|
-random_string=$(date +%s | sha256sum | base64 | head -c 4 ; echo)
|
94
|
|
-img_filemask=$random_string
|
95
|
|
-vid_filemask=$random_string
|
96
|
|
-paste_filemask=$random_string
|
97
|
|
-
|
98
|
|
-
|
99
|
|
-###### rofi options ######
|
|
52
|
+random_string=$(date +'%Y-%m-%d-%H%M%S')
|
|
53
|
+img_filemask=img-$random_string.png
|
|
54
|
+paste_filemask=txt-$random_string.txt
|
|
55
|
+
|
|
56
|
+# video filemask is without extension, since it gets the extension
|
|
57
|
+# from set profile
|
|
58
|
+vid_filemask=vid-$random_string
|
|
59
|
+help_color="#0C73C2"
|
|
60
|
+slop_color="255,0,0"
|
|
61
|
+slop_border=2
|
|
62
|
+hidecursor=yes
|
|
63
|
+# slop options
|
|
64
|
+slop_border=1
|
|
65
|
+slop_color="255,0,0"
|
|
66
|
+hidecursor=yes
|
100
|
67
|
|
|
68
|
+# rofi options ######
|
101
|
69
|
# here you can override options for rofi. normally rofi options
|
102
|
70
|
# are read from ~/.Xresources, so setting options there is recommended.
|
103
|
71
|
# you can dump options for ~/.Xresources with "rofi -dump-xresources"
|
104
|
|
-rofiopts="-lines 25"
|
|
72
|
+# rofiopts="-border 2 -width 35 -lines 40 -padding 12"
|