dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 4e60521e8266d97d414ee736ea493d7b8e4bb281
parent cf9a7d16ce04d15ede96eb2616c5f61028b22f22
Author: Hayden Hamilton <hayden@haydenvh.com>
Date:   Tue,  3 Mar 2020 21:46:15 +0000

misc

Diffstat:
M.scripts/bin/dmenu/daskpass | 4+---
M.scripts/bin/dmenu/userinput | 5++---
A.scripts/bin/misc/iiread | 29+++++++++++++++++++++++++++++
A.scripts/bin/misc/iisend | 17+++++++++++++++++
M.xinitrc | 2++
5 files changed, 51 insertions(+), 6 deletions(-)

diff --git a/.scripts/bin/dmenu/daskpass b/.scripts/bin/dmenu/daskpass @@ -6,6 +6,4 @@ # haydenvh.com # Copyright (c) 2019 Hayden Hamilton. -dmenu="dmenu" -. $HOME/.dmenurc -$dmenu -P -p "$1" <&- && echo +dmenu -P -p "$1" <&- && echo diff --git a/.scripts/bin/dmenu/userinput b/.scripts/bin/dmenu/userinput @@ -1,4 +1,3 @@ -dmenu="dmenu" -. $HOME/.dmenurc +#!/bin/sh -[ "$(printf "No\\nYes" | $dmenu -i -p "$1")" = "Yes" ] && $2 +[ "$(printf "No\\nYes" | dmenu -i -p "$1")" = "Yes" ] && $2 diff --git a/.scripts/bin/misc/iiread b/.scripts/bin/misc/iiread @@ -0,0 +1,29 @@ +#!/bin/sh + +getout(){ + out=$(find . -type f -name "*out") +} + +refresh(){ + getout + for line in $out + do + name=$(echo "$line" | sed 's/out$//;s~/$~~;s~.*/~~') + awk "{print \"[$name] \" \$0}" < $line + cp $line /dev/stdout > $(echo "$line" | sed 's/out$/old/') + printf "" > $line + done +} + +quit(){ + read -n 1 -s var < /dev/tty + pkill iiread +} + +clear +quit & +while true +do + refresh + sleep 0.5 +done diff --git a/.scripts/bin/misc/iisend b/.scripts/bin/misc/iisend @@ -0,0 +1,17 @@ +#!/bin/sh + +getchan(){ + chans=$(find . -name "*in" | sed 's~/in$~~;s~.*/~~') + printf "$chans\n\n" +} + +while true +do + clear + getchan + printf "channel>>"; read var < /dev/tty + printf "message>>"; read var2 < /dev/tty + + channel=$(find -type d | grep "$var") + echo "$var2" > $channel/\in +done diff --git a/.xinitrc b/.xinitrc @@ -1,5 +1,7 @@ #!/bin/bash +xrdb ~/.Xresources + while true; do dwm done