From 07c5c9a007b2d736877361418fcea89ad1efd5c9 Mon Sep 17 00:00:00 2001 From: xyz Date: Mon, 27 Sep 2021 18:32:44 -0700 Subject: refactor --- .local/bin/reco | 3 +++ 1 file changed, 3 insertions(+) (limited to '.local/bin/reco') diff --git a/.local/bin/reco b/.local/bin/reco index 4d68bffd..1b5dbdac 100755 --- a/.local/bin/reco +++ b/.local/bin/reco @@ -7,6 +7,9 @@ # better notify-send? keep send notify-send when recording? or not # mktemp instead of time.uuid? +# benchmark diff. encode codecs to choose a better one? +# consider audio, camera ... +# hardware acc? seems no for ffvhuff? see arch wiki # use tmp instead? infofile="$XDG_CACHE_HOME/recoinfo" -- cgit v1.2.3-70-g09d2 yz123/config_local_arch' title='config_local_arch Git repository'/>
summaryrefslogtreecommitdiff
blob: b3174749f8a9c8e85a7cbb4ffe1e8fc2b12fd516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# DATE From To

while getopts cfF:t:T: opt; do
	case $opt in
		c) tz_from="Asia/Shanghai";;
		f) tz_from="$(tzselect)";;
		F) tz_from="$OPTARG";;
		# one extra ',' at the end will not let `for tz in ...` loop one extra time?
		t)	for i in $(seq "$OPTARG"); do
				tz_to="$(tzselect),$tz_to"
			done;;
		T) tz_to="$OPTARG,$tz_to";;
		\?) exit 1;;
	esac
done
shift $((OPTIND-1))