spring cleaning
This commit is contained in:
parent
9c9eae22bb
commit
7cd0e131ff
8
Makefile
8
Makefile
|
@ -10,19 +10,12 @@ man:
|
|||
sh:
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/paste $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/bat $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/disp $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/wallpaper $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/yt $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/connect $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/nws $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/pashmenu $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/urlhandle $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/ftphandle $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/indicate $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/vol $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/josm_launch $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/start $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/proxtest $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/pco $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/git-survey $(DESTDIR)$(PREFIX)/bin
|
||||
|
@ -40,6 +33,7 @@ c:
|
|||
cp -f c/boid $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f c/anaconda $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f c/simplestatus $(DESTDIR)$(PREFIX)/bin
|
||||
|
||||
clean:
|
||||
rm c/scream
|
||||
rm c/timer
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This one is relatively simple. Relay the first argument to
|
||||
# ncftp and then you're done.
|
||||
|
||||
st -e ncftp $1
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
i=$(date '+%H:%M:%S %m/%d (%h)')
|
||||
j=$(bat)
|
||||
k=$(vol)
|
||||
printf "%s | %s | %s\n" "$i" "$j" "$k" | nenu
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
wmname LG3D
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
|
||||
josm
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# this is pashmenu. this program will only work if gpg's
|
||||
# gui password dialog is enabled. i'm not why it's enabled,
|
||||
# but it's required for this to work.
|
||||
|
||||
choice=$(pash l | nenu)
|
||||
pash c $choice
|
18
sh/urlhandle
18
sh/urlhandle
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# access gemini and gopher urls within vimb with vulpes proxy
|
||||
|
||||
# yes, this will result in urls like
|
||||
# 'proto://host.tld/page?q="://" becoming
|
||||
# 'proto/host.tld/page?q="/"
|
||||
stripped_url=`printf "%s" $1 | sed 's|://|/|g'`
|
||||
|
||||
# use xdotool to type the correct commands into the vimb
|
||||
# window, assuming that the window is currently focused (which
|
||||
# happens most of the time)
|
||||
xdotool key Escape
|
||||
xdotool key Escape
|
||||
xdotool type "ohttp://proxy.vulpes.one/${stripped_url}"
|
||||
xdotool key Return
|
||||
|
||||
exit 0
|
40
sh/xkcd
40
sh/xkcd
|
@ -1,40 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -z $XKCD_DBG ] || set -x
|
||||
err () {
|
||||
printf "err: %s\n" ${1}
|
||||
[ -z "${2}" ] && exit 1
|
||||
exit ${2}
|
||||
}
|
||||
getImageForComic() {
|
||||
[ -z ${1} ] && a="" || a="$1/"
|
||||
curl --silent https://xkcd.com/${a} | grep 'imgs.xkcd.com/comics/' | sed 1q | grep -o 'https://imgs\.xkcd\.com/comics/.*\....'
|
||||
}
|
||||
viewImage() {
|
||||
a=$(mktemp)
|
||||
curl --silent $(getImageForComic ${1}) -o $a
|
||||
feh $a
|
||||
}
|
||||
proghelp() {
|
||||
printf "\
|
||||
xkcd - view xkcd comics
|
||||
|
||||
=> [v]iew [id] - View comic with id [id]
|
||||
=> [g]et [id] - Get url for comic [id]
|
||||
"
|
||||
}
|
||||
case $1 in
|
||||
'v'*)
|
||||
viewImage $2
|
||||
exit 0
|
||||
;;
|
||||
'g'*)
|
||||
getImageForComic $2
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
proghelp
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
exit 0
|
Loading…
Reference in New Issue