From 817db44134697e1d8647305eaedc6253a76c96af Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sat, 1 Oct 2016 14:51:10 -0400 Subject: new commands --- dot/local/bin/banish | 9 +++++++++ dot/local/bin/cam | 3 +++ dot/local/bin/vseg | 8 ++++++++ dot/local/bin/youmusic | 2 ++ 4 files changed, 22 insertions(+) create mode 100755 dot/local/bin/banish create mode 100644 dot/local/bin/cam create mode 100755 dot/local/bin/vseg create mode 100755 dot/local/bin/youmusic (limited to 'dot') 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 @@ +#!/bin/bash + +export DISPLAY=${DISPLAY:-:0} + +xwininfo -root | sed -ne 's/ \(Width\|Height\): //p' | { + read w + read h + xwit -root -warp $w $h +} 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 @@ +#!/bin/sh +export DISPLAY=:0 +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 @@ +#!/bin/sh +input_file=$1 +output_file=$2 +start_time=$3 +end_time=$4 + +exec ffmpeg -ss "$start_time" -i "$input_file" -to "$end_time" -c copy -copyts "$output_file" + 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 @@ +#!/bin/sh +exec youtube-dl -tc --extract-audio "$@" -- cgit v1.2.3