dot

packages and services management
Log | Files | Refs | README

commit 427d6a9faf36eb08e5cc0c5d5cc6adbac9137654
parent 76569dc4fe0b9f84fcec34387e08c24d5ce112e5
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 29 Apr 2017 10:10:29 +0200

Cleanup

Diffstat:
Mbin/ii-filter | 10+++++-----
Mbin/io-jobs | 2+-
Mbin/io-url | 4++--
Mbin/mblaze-filter | 98+++++++++++++++++++++++++++++++++++++------------------------------------------
4 files changed, 54 insertions(+), 60 deletions(-)

diff --git a/bin/ii-filter b/bin/ii-filter @@ -1,7 +1,7 @@ busybox awk ' BEGIN { - NICK_COL = 14; + NICK_COL = 10; TEXT_COL = 80 - NICK_COL - length(" "); } @@ -36,9 +36,9 @@ BEGIN { } if (nick != lastnick) - printf("%-" NICK_COL "s \n", date); + printf("%-" NICK_COL "s │\n", date); - printf("%" NICK_COL "s ", + printf("%" NICK_COL "s │", (nick != lastnick && nick != "-!-") ? nick : ""); for (first = 1; length($0) >= TEXT_COL; first = 0) { @@ -47,13 +47,13 @@ BEGIN { $0 = substr($0, length(line) + 2); if (!first) - printf("%" NICK_COL "s ", ""); + printf("%" NICK_COL "s │", ""); print(line); } if (!first) - printf("%" NICK_COL "s ", ""); + printf("%" NICK_COL "s │", ""); print($0); diff --git a/bin/io-jobs b/bin/io-jobs @@ -1 +1 @@ -alias j='fg $(jobs | iomenu | sed -r "s/\[(0-9)\].*/\1/")' +fg $(jobs | iomenu | sed -r "s/\[(0-9)\].*/\1/") diff --git a/bin/io-url b/bin/io-url @@ -14,11 +14,11 @@ case "$url" in ;; ( gopher://* ) ABDUCO="$name" exec abduco -e "$e" -A "$name" \ - rlwrap cgo "$url" + cgo "$url" ;; ( irc://* ) ABDUCO="$name" exec abduco -e "$e" -A "$name" \ - ii -i "$HOME/var/irc" -e 6697 -n "$NICK" -f "$NAME" \ + ii -i "$HOME/var/irc" -e 6697 -n "${NICK:-$USER}" -f "$NAME" \ -s "${url#irc://}" ;; esac diff --git a/bin/mblaze-filter b/bin/mblaze-filter @@ -13,88 +13,82 @@ filter() } -main() -{ - minc "$MAIL" - +minc "$MAIL" | mscan - # Social networking - filter from:'lobste.rs' lobsters +# Social networking - filter from:'reddit' reddit +filter from:'lobste.rs' lobsters - filter from:'disqus' disqus +filter from:'reddit' reddit - filter from:'nixers.net' nixers +filter from:'disqus' disqus - filter from:'researchgate' researchgate +filter from:'nixers.net' nixers +filter from:'researchgate' researchgate - # Mailing lists - filter from:'sachachua.com' sachachua +# Mailing lists - filter cc:'mmh@marmaro.de' mmh - filter to:'mmh@marmaro.de' mmh +filter from:'sachachua.com' sachachua - filter subject:'\[gobolinux-' gobolinux +filter cc:'mmh@marmaro.de' mmh +filter to:'mmh@marmaro.de' mmh - filter from:'suckless.org' suckless - filter to:'suckless.org' suckless - filter cc:'suckless.org' suckless +filter subject:'\[gobolinux-' gobolinux - filter from:'fsf.org' fsf +filter from:'suckless.org' suckless +filter to:'suckless.org' suckless +filter cc:'suckless.org' suckless - filter to:'listes.etudiant.univ-rennes1.fr' univ-rennes1 - filter List-Id:'foad.univ-rennes1.fr' univ-rennes1 - filter Received:'vmsympa1.univ-rennes1.fr' univ-rennes1 - filter Return-Path:'listes.univ-rennes1.fr' univ-rennes1 +filter from:'fsf.org' fsf - filter from:'amnesty' amnesty +filter to:'listes.etudiant.univ-rennes1.fr' univ-rennes1 +filter List-Id:'foad.univ-rennes1.fr' univ-rennes1 +filter Received:'vmsympa1.univ-rennes1.fr' univ-rennes1 +filter Return-Path:'listes.univ-rennes1.fr' univ-rennes1 - filter List-Id:'breizh-entropy.org' breizh-entropy +filter from:'amnesty' amnesty +filter List-Id:'breizh-entropy.org' breizh-entropy - # Services - filter subject:'\[repo.or.cz\]' repo.or.cz +# Services - filter from:'github.com' github +filter subject:'\[repo.or.cz\]' repo.or.cz - filter from:'stackexchange.com' stackexchange +filter from:'github.com' github - filter from:'bandcamp.com' bandcamp - filter from:'Cryo Chamber' bandcamp +filter from:'stackexchange.com' stackexchange - filter from:'keybase.io' keybase - filter :rom 'wordpress.com' wordpress +filter from:'bandcamp.com' bandcamp +filter from:'Cryo Chamber' bandcamp - filter from:'google.com' google +filter from:'keybase.io' keybase +filter :rom 'wordpress.com' wordpress +filter from:'google.com' google - # Payments - filter from:'@free-mobile.fr' utilities +# Payments - filter from:'@paypal' payment - filter from:'coinbase.com' payment +filter from:'@free-mobile.fr' utilities - filter from:'gandi.net' webservices +filter from:'@paypal' payment +filter from:'coinbase.com' payment - filter from:'@amazon' webstores +filter from:'gandi.net' webservices - filter from:'crous-rennes.fr' housing - - filter from:'sncf.com' transports - filter from:'captaintrain.com' transports - filter from:'flixbus' transports - filter from:'megabus' transports - filter from:'ouigo' transports - filter from:'ouibus' transports - filter from:'keolis.com' transports - filter from:'BlaBlaCar' transports -} +filter from:'@amazon' webstores +filter from:'crous-rennes.fr' housing -main '$@' | mscan +filter from:'sncf.com' transports +filter from:'captaintrain.com' transports +filter from:'flixbus' transports +filter from:'megabus' transports +filter from:'ouigo' transports +filter from:'ouibus' transports +filter from:'keolis.com' transports +filter from:'BlaBlaCar' transports