summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdot/local/bin/banish9
-rw-r--r--dot/local/bin/cam3
-rwxr-xr-xdot/local/bin/vseg8
-rwxr-xr-xdot/local/bin/youmusic2
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
3export DISPLAY=${DISPLAY:-:0}
4
5xwininfo -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
2export DISPLAY=:0
3exec 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
2input_file=$1
3output_file=$2
4start_time=$3
5end_time=$4
6
7exec 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
2exec youtube-dl -tc --extract-audio "$@"