dot

packages and services management
Log | Files | Refs | README

commit 6413910049f965b0625aac48ecdf50e92344477b
parent 5226be98dd89d9f06239665d4aae6828700d7b84
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 20 May 2017 23:53:54 +0200

More io

Diffstat:
Abin/color | 13+++++++++++++
Mbin/inv | 13+------------
Mbin/io | 3++-
Mbin/io-irc | 2+-
Murl | 3+++
5 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/bin/color b/bin/color @@ -0,0 +1,13 @@ +[ "$DISPLAY" ] || exit + +case "$1" in +( 0 ) xsetroot -bitmap "$ETC/tile.xbm" -bg '#000000' -fg '#000000' ;; +( 1 ) xsetroot -bitmap "$ETC/tile.xbm" -bg '#000000' -fg '#555555' ;; +( 2 ) xsetroot -bitmap "$ETC/tile.xbm" -bg '#001133' -fg '#ffeecc' ;; +( 3 ) xsetroot -bitmap "$ETC/tile.xbm" -bg '#220033' -fg '#00aa99' ;; +( 4 ) xsetroot -bitmap "$ETC/tile.xbm" -bg '#443322' -fg '#ffffff' ;; +( 5 ) xsetroot -bitmap "$ETC/tile.xbm" -bg '#000000' -fg '#667722' ;; +( 6 ) xsetroot -bitmap "$ETC/tile.xbm" -bg '#440000' -fg '#88cc00' ;; +( 7 ) xsetroot -bitmap "$ETC/tile.xbm" -bg '#000000' -fg '#008888' ;; +( 8 ) xsetroot -bitmap "$ETC/tile.xbm" -bg '#333333' -fg '#000000' ;; +esac diff --git a/bin/inv b/bin/inv @@ -1,12 +1 @@ -[ $# = 0 ] && printf '\033[?5%s' h && exit - -[ "$DISPLAY" ] || exit - -if [ -f /tmp/inv ] -then - xsetroot -bitmap etc/tile.xbm -bg '#000000' -fg '#ffeecc' - rm /tmp/inv -else - xsetroot -bitmap etc/tile.xbm -bg '#ffeecc' -fg '#000000' - touch /tmp/inv -fi +[ $# = 0 ] && printf '\033[?5%s' h || printf '\033[?5%s' l diff --git a/bin/io b/bin/io @@ -15,7 +15,7 @@ nohup find "$HOME" \ -path "*/v" -prune -o \ -path "${MAIL%/*}/*/*" -prune -o \ -type d -exec printf '%s/\n' {} + -o \ - -print 2> /dev/null | sort -o "$HOME/.cache/find" & + -print 2> /dev/null | sort -o "/tmp/find" & # --- selection ---------------------------------------------------------------- @@ -85,6 +85,7 @@ command="io-${selection%% *}" path="${selection#* }" wait +mv /tmp/find "$HOME/.cache/find" # --- attach ------------------------------------------------------------------- diff --git a/bin/io-irc b/bin/io-irc @@ -2,7 +2,7 @@ [ -d "$1" ] || exit 1 -tail -f -n 40 "$1/out" & +tail -f -n 40 "$1/out" | ii-filter-3 & while IFS='' read -r line do diff --git a/url b/url @@ -4,5 +4,8 @@ irc://unix.chat:6697 irc://irc.cyberia.is:6697 irc://irc.scalix.gandi.net gopher://bitreich.org +gopher://z3bra.org +gopher://r-36.net +gopher://gopherproject.org ssh://josuah@josuah.net ssh://josuahdemangeon@grex.org