ttweaks - scripts - random scripts
HTML git clone git://parazyd.org/scripts.git
DIR Log
DIR Files
DIR Refs
---
DIR commit f9a20549f30de972fa5a7522b00a5637f3ca05ee
DIR parent ab3a109fc3296a1bee3d31773851f62cd58f9675
HTML Author: parazyd <parazyd@dyne.org>
Date: Wed, 7 Feb 2018 18:24:57 +0100
ttweaks
Diffstat:
M dillo | 1 +
M gopherholes | 6 ++++--
M record | 4 ++--
3 files changed, 7 insertions(+), 4 deletions(-)
---
DIR diff --git a/dillo b/dillo
t@@ -3,3 +3,4 @@
/usr/bin/dillo "$@"
pgrep dpid && killall dpid
+pgrep \.dpi$ | xargs kill
DIR diff --git a/gopherholes b/gopherholes
t@@ -1,5 +1,7 @@
#!/bin/sh
-hole="$(cat ~/gopherholes | dmenu | awk '{print $1}')"
-printf "gopher://%s" "${hole}" | plumb
+hole="$(cat ~/gopherholes | dmenu -l 20 | awk '{print $1}')"
+
+[ -n "$hole" ] || exit 1
+printf "gopher://%s" "${hole}" | plumb
DIR diff --git a/record b/record
t@@ -5,8 +5,8 @@
PIDNAME=recorder
FRAMERATE=25
-#RES=$(wattr wh `lsw -r` | tr \ x)
-RES=1928x1080
+RES=$(wattr wh `lsw -r` | tr \ x)
+#RES=1928x1080
usage() {
echo "usage: $(basename $0) [-fk] <filename>" >&2