Caleb Malchik said: > I switched to Linux/cli/dwm from OS X just a few years ago, and since the > switch I feel the way I do certain basic things is embarrassingly > inefficient. For example, if I find an article on the web I want to come > back to, I will copy the URL from the address bar, open a terminal window > with ctl-shift-enter, type 'vi doc/toread', then paste the URL > at the top of the file. Yes it's still faster than what I would have done on > OS X, but it feels clunky.
You may put together a script like this: #!/bin/sh TMPFILE=`mktemp -p /tmp toread.XXXXXXXXXX` {xclip -o && echo; cat doc/toread} > $TMPFILE mv $TMPFILE doc/toread and then after selecting URL in address bar you could just run this script (eg. via "Ctrl+p" in dwm). -- Dmitrij D. Czarkoff