Browse Source

Update teiler config

Ian Adam Naval 5 years ago
parent
commit
0e11eaf4fd

+ 37
- 69
teiler/teiler.configdir/config View File

@@ -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"

+ 105
- 0
teiler/teiler.configdir/config.old View File

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

+ 7
- 0
teiler/teiler.configdir/profiles/mp4-noaudio View File

@@ -0,0 +1,7 @@
1
+# do not edit this file. instead make a copy under different name
2
+# teiler will overwrite this file on start
3
+
4
+encopts="-r 30 -vcodec libx264 -pix_fmt yuv420p -s $res -acodec libmp3lame"
5
+rect_encopts="-r 30 -c:v libx264 -preset slow -crf 18 -c:a libvorbis"
6
+ext="mp4"
7
+ffaudio=""

+ 7
- 0
teiler/teiler.configdir/profiles/mp4-pulse View File

@@ -0,0 +1,7 @@
1
+# do not edit this file. instead make a copy under different name
2
+# teiler will overwrite this file on start
3
+
4
+encopts="-r 30 -vcodec libx264 -pix_fmt yuv420p -s $res -acodec libmp3lame"
5
+rect_encopts="-r 30 -c:v libx264 -preset slow -crf 18 -c:a libvorbis"
6
+ext="mp4"
7
+ffaudio="-f alsa -ac 2 -i pulse"

+ 9
- 0
teiler/teiler.configdir/uploader/s3 View File

@@ -0,0 +1,9 @@
1
+#!/bin/bash
2
+
3
+s3_bucket=
4
+s3_path_img=path/to/images
5
+s3_path_vid=path/to/videos
6
+s3_path_paste=path/to/pastes
7
+s3_http_img=http://S3_DOMAIN/path/to/images
8
+s3_http_vid=http://S3_DOMAIN/path/to/videos
9
+s3_http_paste=http://S3_DOMAIN/path/to/pastes

+ 10
- 0
teiler/teiler.configdir/uploader/scp View File

@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+
3
+scp_host=ratte
4
+scp_path_img=/srv/sites/ianonavy.com/files
5
+scp_path_vid=/srv/sites/ianonavy.com/files
6
+scp_path_paste=/srv/sites/ianonavy.com/files
7
+http_img=https://ianonavy.com/files
8
+http_vid=https://ianonavy.com/files
9
+http_paste=https://ianonavy.com/files
10
+

Loading…
Cancel
Save