diff options
author | Andrew Cady <d@jerkface.net> | 2016-10-01 14:51:10 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-10-01 14:51:10 -0400 |
commit | 817db44134697e1d8647305eaedc6253a76c96af (patch) | |
tree | b05c59289754b6f35b8fbd6e48806c42af2e2703 /dot/local | |
parent | 85c07de1e294a18b7cdd40c4cf8f15636bf9a8fc (diff) |
new commands
Diffstat (limited to 'dot/local')
-rwxr-xr-x | dot/local/bin/banish | 9 | ||||
-rw-r--r-- | dot/local/bin/cam | 3 | ||||
-rwxr-xr-x | dot/local/bin/vseg | 8 | ||||
-rwxr-xr-x | dot/local/bin/youmusic | 2 |
4 files changed, 22 insertions, 0 deletions
diff --git a/dot/local/bin/banish b/dot/local/bin/banish new file mode 100755 index 0000000..6391253 --- /dev/null +++ b/dot/local/bin/banish | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | export DISPLAY=${DISPLAY:-:0} | ||
4 | |||
5 | xwininfo -root | sed -ne 's/ \(Width\|Height\): //p' | { | ||
6 | read w | ||
7 | read h | ||
8 | xwit -root -warp $w $h | ||
9 | } | ||
diff --git a/dot/local/bin/cam b/dot/local/bin/cam new file mode 100644 index 0000000..4857b75 --- /dev/null +++ b/dot/local/bin/cam | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | export DISPLAY=:0 | ||
3 | exec luvcview -d /dev/video1 -w -S | ||
diff --git a/dot/local/bin/vseg b/dot/local/bin/vseg new file mode 100755 index 0000000..f1c3326 --- /dev/null +++ b/dot/local/bin/vseg | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | input_file=$1 | ||
3 | output_file=$2 | ||
4 | start_time=$3 | ||
5 | end_time=$4 | ||
6 | |||
7 | exec ffmpeg -ss "$start_time" -i "$input_file" -to "$end_time" -c copy -copyts "$output_file" | ||
8 | |||
diff --git a/dot/local/bin/youmusic b/dot/local/bin/youmusic new file mode 100755 index 0000000..3ed3b12 --- /dev/null +++ b/dot/local/bin/youmusic | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/sh | ||
2 | exec youtube-dl -tc --extract-audio "$@" | ||