scripts

random scripts
git clone git://parazyd.org/scripts.git
Log | Files | Refs

commit dce50335c8589dd119f5b5aa2b3b979a2aa2252e
parent 34a80fdbe1dd124ee729823b6301cb2fda4dff5f
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 22 Feb 2017 17:41:14 +0100

move more to obsolete

Diffstat:
Mautoup | 2+-
Mdmenupass | 2+-
Mdmenuraise | 2--
Rimg -> obsolete/img | 0
Rix -> obsolete/ix | 0
Mys | 3++-
6 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/autoup b/autoup @@ -12,7 +12,7 @@ test "$1" = -n && { } test -z "$1" && exit 1 || filename=$(basename $1) -scp -i "$sshkey" "$1" "${sshuser}@${server}:${webroot}/${webdir}/${filename}" +scp -i "$sshkey" "$1" "${sshuser}@${server}:${webroot}/${webdir}/${filename}" || exit 1 echo "https://$server/$webdir/$filename" | xclip -i echo "https://$server/$webdir/$filename" #rm $1 diff --git a/dmenupass b/dmenupass @@ -4,7 +4,7 @@ prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}" password="$(\ printf %s\\n $prefix/**/*.gpg \ - | sed -e 's/.gpg$//' -e 's@'$prefix'/@@' \ + | sed -e "s/.gpg$//" -e "s@$prefix/@@" \ | dmenu -i -l 15 -p 'pass:' -sb '#d7ff00' -sf '#000000' "$@")" [ -n "$password" ] || exit 1 diff --git a/dmenuraise b/dmenuraise @@ -7,7 +7,6 @@ normfg="#939393" normbg="#000000" selbg="#800000" selfg="#ffffff" -font="Terminus:size=9:antialias=true:autohint=true" height=$(wmctrl -l | wc -l) if [ $height -gt 30 ]; then @@ -22,7 +21,6 @@ num=$(wmctrl -l \ | nl -w 3 -n rn \ | sed -r 's/^([ 0-9]+)[ \t]*(.*)$/\1 - \2/' \ | dmenu -i \ - -fn $font \ -nb $normbg \ -nf $normfg \ -sb $selbg \ diff --git a/img b/obsolete/img diff --git a/ix b/obsolete/ix diff --git a/ys b/ys @@ -10,7 +10,8 @@ search() { sstr="" if [ ${#} -ne 1 ]; then for arg in $@; do - sstr=$sstr"$arg|" + sstr=$sstr"$arg+" + #sstr=$sstr"$arg|" done else sstr=$1