dotfiles

Dotfiles, plumber(4) rules and scripts
Log | Files | Refs | README

commit 8f7ef333c6325e316084639a6dcd29df44df0ee5
parent 1e751345f71dfbbb1c3603fcc9a4c8cdf8fd6f54
Author: Patrick Marchand <mail@patrickmarchand.com>
Date:   Mon,  5 Nov 2018 01:16:36 -0500

First pass at better plumber integration

Changes editor for vise(1) (vis), changes plumb rules to use vis
and creates shell script to pipe xclip(1) content to plumb(1).

Diffstat:
Mksh/.kshrc | 2+-
Mplan9lib/lib/plumbing | 19+++++++------------
Dscripts/Scripts/2screens | 0
Ascripts/Scripts/dplumb | 4++++
Mscripts/Scripts/ports.sh | 0
Mscripts/Scripts/upgrade.sh | 0
Mxorg/.xinitrc | 6+-----
7 files changed, 13 insertions(+), 18 deletions(-)

diff --git a/ksh/.kshrc b/ksh/.kshrc @@ -5,7 +5,7 @@ LC_CTYPE=en_US.UTF-8 export LC_CTYPE="en_US.UTF-8" export GTK_IM_MODULE=xim export LESSCHARSET=utf-8 -export EDITOR="E" +export EDITOR="vise" export SHELL="/bin/ksh" export home=$HOME export prompt="$ " diff --git a/plan9lib/lib/plumbing b/plan9lib/lib/plumbing @@ -89,7 +89,7 @@ arg isfile $1 data set $file attr add addr=$2-#1+#$3,$4-#1+#$5 plumb to edit -plumb client $editor +plumb start xterm -T $file -e vise +$2 $file # existing files tagged by line number:columnumber or linenumber.columnumber, twice, go to editor type is text @@ -98,7 +98,7 @@ arg isfile $1 data set $file attr add addr=$2-#1+#$3 plumb to edit -plumb client $editor +plumb start xterm -T $file -e vise +$2 $file # existing files, possibly tagged by line number, go to editor type is text @@ -107,7 +107,7 @@ arg isfile $1 data set $file attr add addr=$3 plumb to edit -plumb client $editor +plumb start xterm -T $file -e vise +$3 $file # .h files are looked up in /usr/include and passed to edit type is text @@ -116,7 +116,7 @@ arg isfile /usr/include/$1 data set $file attr add addr=$3 plumb to edit -plumb client $editor +plumb start xterm -T $file -e vise +$3 $file # .h files are looked up in /usr/local/include and passed to edit type is text @@ -125,7 +125,7 @@ arg isfile /usr/local/include/$1 data set $file attr add addr=$3 plumb to edit -plumb client $editor +plumb start xterm -T $file -e vise +$3 $file # .h files are looked up in $plan9/include and passed to edit type is text @@ -134,7 +134,7 @@ arg isfile $plan9/include/$1 data set $file attr add addr=$3 plumb to edit -plumb client $editor +plumb start xterm -T $file -e vise +$3 $file # .m files are looked up in /usr/inferno/module and passed to edit type is text @@ -162,12 +162,7 @@ plumb start wmail $0 # man index entries are synthesized type is text data matches '([a-zA-Z¡-￿0-9_\-./]+)\(([1-8])\)' -plumb start rc -c 'man '$2' '$1' >[2=1] | nobs | plumb -i -d edit -a ''action=showdata filename=/man/'$1'('$2')''' - -# pkg names are given to pkg_info -type is text -data matches '([a-zA-Z0-9]+-)+([a-zA-Z0-9]+\.?)+(-[a-zA-Z0-9]+)?' -plumb start rc -c 'pkg_info '$0' | plumb -i -d edit -a ''action=showdata filename=''$0' +plumb start xterm -T '/man/'$1'('$2')' -e vise +'<man '$2' '$1' | nobs' # start rule for images without known suffixes dst is image diff --git a/scripts/Scripts/2screens b/scripts/Scripts/2screens diff --git a/scripts/Scripts/dplumb b/scripts/Scripts/dplumb @@ -0,0 +1,3 @@ +#!/bin/sh + +xclip -o | plumb -i+ \ No newline at end of file diff --git a/scripts/Scripts/ports.sh b/scripts/Scripts/ports.sh diff --git a/scripts/Scripts/upgrade.sh b/scripts/Scripts/upgrade.sh diff --git a/xorg/.xinitrc b/xorg/.xinitrc @@ -1,12 +1,8 @@ export ENV=$HOME/.kshrc -xset -b . $HOME/.kshrc setxkbmap us dvorak exec redshift & -exec factotum & exec plumber & -exec fontsrv & -exec a & -exec xterm & +exec xterm -e dvtm -M & exec dwmstat & exec dwm