dot

packages and services management
Log | Files | Refs | README

commit b83b25e16ce42bf0680f549ddb108781475d1cb9
parent 73b7f659c90e8eb8721f81083fbd779ad0c662b0
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 20 Jan 2018 02:21:41 +0100

iomenu -p prompt -> iomenu

Diffstat:
Mbin/io-abduco | 2+-
Mbin/io-find | 2+-
Mbin/io-mail | 6+++---
Mbin/io-man | 2+-
Mbin/io-ps | 2+-
Mbin/io-src | 2+-
Mbin/xdg-open | 2+-
Mpack/dwm/build | 6+++++-
Mpack/dwm/config.h | 1-
9 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/bin/io-abduco b/bin/io-abduco @@ -5,7 +5,7 @@ then name=$1 shift else - name=$({ printf '#'; abduco; } | iomenu -# -p abduco | cut -f4) + name=$({ printf '#'; abduco; } | iomenu -# | cut -f4) fi [ "$SSH_TTY" ] && e='^Z' || e='^\' diff --git a/bin/io-find b/bin/io-find @@ -1,2 +1,2 @@ #!/bin/sh -find "${@:-.}" -name .git -prune -o -print | iomenu -p find +find "${@:-.}" -name .git -prune -o -print | iomenu diff --git a/bin/io-mail b/bin/io-mail @@ -3,7 +3,7 @@ export LC_COLLATE=C mdirs "$HOME/.cache/mail" | sort | while IFS='' read -r dir -do printf '%s\t%s\n' "$(mlist -s "$dir" | wc -l)" "${dir#$PWD/}" -done | iomenu -p mail | cut -f 2 | mlist | mthread | msort -r -d | -mseq -S | mscan -f '%6n %u %D %20f %t%2i%120S' | iomenu -p mail | +do printf '%s\t%s\n' "$(mlist -s "$dir" | wc -l)" "$dir" +done | iomenu | cut -f 2 | mlist | mthread | msort -r -d | +mseq -S | mscan -f '%6n %u %D %20f %t%2i%120S' | iomenu | sed -r 's/^ *([0-9]*) .*/\1/'| xargs mless diff --git a/bin/io-man b/bin/io-man @@ -5,5 +5,5 @@ export LC_COLLATE=C man -k ' ' | sed -r ' s/ - / - / s/(.{25}[^ ]* ) * - /\1- / -' | iomenu -p man | sed -r 's/([_a-zA-Z0-9]*).*\(([0-9p]+).*\).*/\2 \1/' | +' | iomenu | sed -r 's/([_a-zA-Z0-9]*).*\(([0-9p]+).*\).*/\2 \1/' | xargs man diff --git a/bin/io-ps b/bin/io-ps @@ -1,4 +1,4 @@ #!/bin/sh -{ ps -ax || ps; } | sed '1 s/^/#/' | iomenu -p ps -# | +{ ps -ax || ps; } | sed '1 s/^/#/' | iomenu -# | sed -r 's/[^ ]* *([0-9]*).*/\1/' diff --git a/bin/io-src b/bin/io-src @@ -3,4 +3,4 @@ less "$(find "$1" -name .git -prune -o -type f | sort | xargs -n 128 awk ' FNR == 1 { printf("#%s\n", FILENAME); } { printf("%7s\t%s\n", FNR, $0); } -' | iomenu -# -p search | cut -f 1)" +' | iomenu -# | cut -f 1)" diff --git a/bin/xdg-open b/bin/xdg-open @@ -2,7 +2,7 @@ # override the xdg-open utility tty | grep -q -e '^/dev/pts/.*' -e '^/dev/tty.*' || -exec st -f terminus:pixelsize=18 -e "$0" "$@" +exec st -f terminus:pixelsize=16 -e "$0" "$@" [ -e "$1" ] && set -- "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" printf '\033]0;%s\a' "$1" diff --git a/pack/dwm/build b/pack/dwm/build @@ -1,3 +1,7 @@ -cp -f "$PKG/config.h" "$SRC/config.h" +#!/bin/sh -e + +cp -f "$PKG"/*.h "$SRC" +cp -f "$PKG"/*.c "$SRC" cp -f "$PKG/config.mk" "$SRC/config.mk" + make PREFIX="$OPT" install diff --git a/pack/dwm/config.h b/pack/dwm/config.h @@ -122,4 +122,3 @@ static Button buttons[] = { { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, }; -