Re: [dev] [st] RFC halt function

2013-04-26 Thread Patrick Haller
On 2013-04-26 23:11, hiro wrote: > just mod your shell to always copy all stdout of commands into a temp > file, then open the file with less after one of these stupidly long > commands. Or run them via 'at' Or run 'script' when you login And sed out all the terminal carp later on.

Re: [dev] [st] RFC halt function

2013-04-25 Thread Patrick Haller
On 2013-04-25 20:05, Christoph Lohmann wrote: > while trying to copy some stuff from iotop I came to the idea of having > some ??halt?? function in st. This is like the ??halt?? in 9term, where ev??? > erything will stand still but the terminal is working on the output in > the background. Why

Re: [dev] ii IPv6 support

2013-04-11 Thread Patrick Haller
On 2013-04-11 21:17, Carlos Torres wrote: > it was there just a little hidden > http://git.suckless.org/sites/tree/tools.suckless.org/ii/patches/ii-ipv6.diff i mean in the ii repo -> http://git.suckless.org/ii

Re: [dev] ii IPv6 support

2013-04-11 Thread Patrick Haller
On 2013-04-11 20:53, Nico Golde wrote: > http://tools.suckless.org/ii/patches/ii-ipv6.diff Aw fsck. Can we put the patches in the git repo? Either as plain files in patches/, or create a branch based on the commit they diff'd at?

Re: [dev] Call for pkgsrc users

2013-04-10 Thread Patrick Haller
On 2013-04-10 13:13, William Giokas wrote: > There are extremely strong technical arguments for using systemd as a > simple, easy to use and easy to configure initialization system. systemd trades simplicity for boot-speed and stack integration. There are always trade-offs. It's just this seems l

Re: [dev] Makefile/markdown based static site generator

2013-02-21 Thread Patrick Haller
On 2013-02-21 10:19, sta...@cs.tu-berlin.de wrote: > of course: > sed -n '/^\s*

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Patrick Haller
On 2013-02-21 14:19, Kai Hendry wrote: > If you are a Makefile demi-god, you could please help me support input > files blighted with spaces. For example running the Makefile on my > blog, it chokes and stops with > https://github.com/kaihendry/natalian/blob/master/archives/tag/fair%20use.mdwn htt

Re: [dev] [dwm] Optional status bar

2012-01-28 Thread Patrick Haller
On 2012-01-28 14:22, Bjartur Thorlacius wrote: > When I think of it, I can't but wonder if we could write a program > that does tagging and tagging only, and a selection of separate > layout managers that automatically tile or maximize mapped windows. > Interoperability with (other) no-wm tools wou

Re: [dev] [surf] make error

2012-01-04 Thread Patrick Haller
On 2012-01-04 21:28, Hannes Blut wrote: > When making surf on my setup i get do what the error says, add it to your libs in your config.mk, like: LIBS = -L/usr/lib -lc -lX11 -ljavascriptcoregtk-1.0 ${GTKLIB} -lgthread-2.0

Re: [dev] wmii falling out of favor

2012-01-02 Thread Patrick Haller
On 2012-01-02 12:26, hiro wrote: > I don't understand how this is related to your quote? Suraj re-evaluated his toolset. I think the re-evaluation part is a good idea, however it seems you could spend too much time doing it. > You always execute ls when you cd to a different folder? in interacti

Re: [dev] wmii falling out of favor

2012-01-01 Thread Patrick Haller
On 2012-01-01 21:13, Suraj N. Kurapati wrote: > So I considered the trade-offs between SLOC minimalism, project and > community activity, and my productivity in DWM vs. WMII and finally > decided to switch back to WMII (which I used since six years prior). How often do people re-evaluate their too

Re: [dev] network usage graphs

2011-12-23 Thread Patrick Haller
On 2011-12-23 23:16, hiro wrote: > Only so nobody falls in the same pits: gnuplot sucks, bourne shell > sucks (better use awk for tabular calculations) post the scripts? also, check out http://www.colorcombos.com/

Re: [dev] network usage graphs

2011-12-22 Thread Patrick Haller
On 2011-12-22 13:58, hiro wrote: > What tools do you know that are able to render such graphics and > update once per second or so? push the burden of making pretty crap on the client; drop the data to json and let the clients use a javascript library like highcharts.

Re: [dev] Shameless patch request

2011-12-07 Thread Patrick Haller
On 2011-12-07 11:04, Justin Pogue wrote: > At work, I typically have a terminal doing something like "while true; > do ls -l /var/cores && sleep 10 && clear; done" Jobs need two scriptable pathways to your brain: 1) an immediate attention interrupt, and 2) a handle when not busy interrupt. status

Re: [dev] dmenu's lsx binary naming conflicts with lrzsz!

2011-11-27 Thread Patrick Haller
On 2011-11-27 15:32, Roger wrote: > locate "stest" |grep ^stest$ 08:53:31 Err 130 /Volumes/Users/phaller > locate ls | grep ^ls$ 08:53:34 Err 1 /Volumes/Users/phaller > locate ls | grep ^/bin/ls$ /bin/ls 08:53:43 /Volumes/Users/phaller>

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Patrick Haller
On 2011-11-25 22:42, Julian Dammann wrote: > > It's all about spatial locality. > Ever tried ":!your_terminal &" in vim? Maybe that's good enough for you if > bound to some key. autocmd BufEnter * cd %:p:h for when you use multiple buffers in vim.

Re: [dev] semicolons

2011-11-18 Thread Patrick Haller
On 2011-11-18 13:24, pancake wrote: > should we support code written by bitches? K&R v1, page 59: for (i = 0, j = strlen(s)-1; i < j; i++, j--) { SLoC count? Bitch count? ;)

Re: [dev] semicolons

2011-11-18 Thread Patrick Haller
On 2011-11-18 11:40, pancake wrote: > > $ cat dwm.c | sed -e 's,;,ROFL\n,g' |grep ROFL |wc -l use cpp to deal with the includes, defines, comments. __sloc() { grep -v '^#include.*<' "$1" | cpp - | grep -v '^#' | grep -v '^$' } sloc() { __sloc "$1" | wc -l __sloc "$1" | se

Re: [dev] Trouble with Gmail in surf

2011-11-17 Thread Patrick Haller
On 2011-11-17 09:05, Karl Eklund wrote: >I'm having trouble with Gmail and surf. Almost always I get this in the >chat widget: "Oops. Your chat connection may have been interrupted." Seems you can maybe use the load-error signal: http://webkitgtk.org/reference/webkitgtk-webkitwebview.html#

Re: [dev] [surf] downloads

2011-11-04 Thread Patrick Haller
On 2011-11-03 16:30, Peter John Hartman wrote: > > Second of all, and instead, it just prints to stdout (a) the fact that the > Download has started, together with the filename, and (b) the fact that it > has finished/cancelled/errored, together with the filename. Not much more to add a progress b

Re: [dev] Some 2wm questions

2011-10-31 Thread Patrick Haller
On 2011-10-31 19:58, Stephen Paul Weber wrote: > 2) Is there any way to bring a window to the front programatically > under 2wm? I tried xdotool windowactivate and it says the window > manager does not support that, so I tried xdotool windowraise and > that did nothing. If you want to con

Re: [dev] [dwm] 2000 SLOC

2011-10-31 Thread Patrick Haller
On 2011-10-31 10:49, pancake wrote: > I dont understand the point of documentation. Neither do I, so let's triage: Deviation from Convention served by README Commentary on the Code served by IRC, mailing list What is this? How do I? bless some wiki/forum someplace as *th

Re: [dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Patrick Haller
On 2011-10-30 20:04, Sime Ramov wrote: > I've found the following clever ssh-agent stanza in Richard Crowley's > `.profile`[https://raw.github.com/rcrowley/home/master/.profile]: ... > It works partially, i.e. it spawns a new agent on every shell > invocation. It should probably test for functiona

Re: [dev] Please recommend a suckless rss reader

2011-10-29 Thread Patrick Haller
On 2011-10-29 19:22, Christoph Lohmann wrote: >>> I'm looking for a cli newsreader, suckless, less dependencies. Thanks! >> cron + curl + xmlstarlet + md5 = lighter than rss2email.py > Would you mind sharing your script for that? Not exactly posix, so it's got 1/2 of running code, rough concensus

Re: [dev] Please recommend a suckless rss reader

2011-10-29 Thread Patrick Haller
On 2011-10-29 23:22, Yue Wu wrote: > I'm looking for a cli newsreader, suckless, less dependencies. Thanks! cron + curl + xmlstarlet + md5 = lighter than rss2email.py Patrick

Re: [dev] Linux sucks!

2011-10-28 Thread Patrick Haller
On 2011-10-29 01:44, Connor Lane Smith wrote: > This thread is demented... *very* irritating. Trolls have to perform some socially useful function or else we'd all have learned by now. Patrick * yeah, I know it's only October. ;)

Re: [dev] Focusing on windows by name

2011-10-26 Thread Patrick Haller
On 2011-10-26 11:48, Manolo Martínez wrote: > > In openbox I have a key bound to the following:"wmctrl -xa mutt || > urxvt -name mutt -e mutt" xlsclients | grep -q mutt || urxvt -e mutt

Re: [dev] Simple made Easy (Rich Hickey at StrangeLoop)

2011-10-22 Thread Patrick Haller
On 2011-10-22 09:35, Connor Lane Smith wrote: > > the representation of data would be a concern of each program, not of > the terminal, which would probably result in ugly. Let's separate the concerns: UI and Data UI = users should be able to be retarded && dd if=/dev/zero of=/dev/face This is a

Re: [dev] Simple made Easy (Rich Hickey at StrangeLoop)

2011-10-21 Thread Patrick Haller
On 2011-10-22 00:08, Connor Lane Smith wrote: On 21/10/2011, Pierre Chapuis wrote: > > http://www.infoq.com/presentations/Simple-Made-Easy > Thanks, I enjoyed watching this. "Let's all write parsers." Hickey kicks unix because although pipes = composability, output and input = free-form text. We

Re: [dev] Suckless way of checking Nagios?

2011-10-16 Thread Patrick Haller
On 2011-10-16 20:12, Sime Ramov wrote: > Hello. I need to keep track of one remote Nagios instance output, which > excludes cnagios[1]. While nagios output can be made "lite" [1], watching system stats all day does suck. Is permanently allocating visual space really your best interrupt vector (an

Re: [dev] Make dmenu sensitive to user aliases ("Hello world")

2011-10-02 Thread Patrick Haller
On 2011-10-02 22:52, Ethan Grammatikidis wrote: > On Sat, 01 Oct 2011 21:55:56 +0300 > "Kiriakos at Kindstudios" wrote: > > > Hi there, > > > > I'm using many aliases in my terminal sessions and want to be able to use > > them with dmenu > > (which I use as the default menu in all of my xmonad ins

Re: [dev] [surf] download patch updated

2011-09-28 Thread Patrick Haller
On 2011-09-28 14:51, Nick wrote: > Quoth Troels Henriksen: > > Nick writes: > > Huh? I have not had trouble using wget for this. > Can anyone else confirm / deny this? Not for those sites, however I did see enough fails to add the same to https://github.com/patrickhaller/surf-ph Patrick

Re: [dev] New utility

2011-09-24 Thread Patrick Haller
On 2011-09-25 03:19, Christoph Lohmann wrote: > ocaml;wu (ocaml; won't use) use the bringer_obsolete.bash [1] from the package? why ocaml;wu? because it's outside the C/sh stack, or ? Patrick [1] send "https://github.com/cfuehrmann/bringer/raw/master/bringer_obsolete.bash \r" expect "bash;wu"

Re: [dev] Simple application launcher?

2011-06-30 Thread Patrick Haller
On Thu, Jun 30, 2011 at 04:40:23PM +0200, f...@snakeoilproductions.net wrote: > perhaps _20h_'s thingmenu fits your need? > http://git.r-36.net/thingmenu/ or clock from http://www.jessies.org/~enh/software/x11/

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Patrick Haller
On Wed, Jun 08, 2011 at 08:01:10AM +0200, Petr Sabata wrote: > On Wed, Jun 08, 2011 at 12:57:40PM +0800, Patrick Haller wrote: > > > > define $EDITOR then ^x^e > > I guess this is just something bash-specific? yeah, edit the current command using $EDITOR file manager

Re: [dev] ideas on suckless file manager

2011-06-07 Thread Patrick Haller
On Tue, Jun 07, 2011 at 09:03:06PM -0700, Noah Birnel wrote: > ls >listing && vim listing && mv `cat listing` dest define $EDITOR then ^x^e Patrick

Re: [dev] dwm taskbar config

2011-03-23 Thread Patrick Haller
On Wed, Mar 23, 2011 at 10:34:57PM +0200, Le Tian wrote: >Yeah, your variant is better, but why should I make exec dwm? I highly recommend writing a tiny looping shell script .e.g. each of the various ideas below, and watching what they do with pstree or 'ps fax'. #1 while true; do ex

Re: [dev] Not Using a Window Manager?

2011-03-02 Thread Patrick Haller
On Wed, Mar 02, 2011 at 09:32:40AM +0100, Anselm R Garbe wrote: > > If you understand some of the C functions of dwm as Unix processes > than you are pretty close to realise, one can play things pretty much > Unix like, but if the LOC adds up dramatically at the bottom line, it > is probably not wo

Re: [dev] Not Using a Window Manager?

2011-03-01 Thread Patrick Haller
On Wed, Mar 02, 2011 at 11:36:46AM +0800, sqweek wrote: > > Nice. Each task is so simple broken down like this :) Thanks. I just added a focus manager that just makes sure focus is returned to PointerRoot. It's not absolutely necessary to run, because apps that exit taking focus with them can be

Re: [dev] Unix philosophy window manager

2011-02-28 Thread Patrick Haller
On Mon, Feb 28, 2011 at 09:30:26AM +0100, Kurt Van Dijck wrote: > > To make it work smoothly, 1 such program needs a SubstructureRedirectMask. > Technically, IMHO, that 1 program _is_ the window manager. > > I think the subject of the thread was a bit misleading. Perhaps. With X11 and no window

Re: [dev] Not Using a Window Manager?

2011-02-26 Thread Patrick Haller
On Sat, Feb 26, 2011 at 11:17:50AM -0500, Kurt H Maier wrote: > Precisely what value do you get out of hacking up shell scripts to do > this with a dozen tools? It's at least a good way to understand exactly what one gets from X11. ;) Patrick

Re: [dev] Not Using a Window Manager?

2011-02-26 Thread Patrick Haller
On Sat, Feb 26, 2011 at 11:22:50AM -0500, Steve Ryan wrote: > > This is very cool, however I have one question. Correct me if > I'm wrong, but you're replacing window-manager functionality with > various small scripts and built-in X tools, right? So wouldn't you > just be creating a (very mini

Re: [dev] Not Using a Window Manager?

2011-02-26 Thread Patrick Haller
On Sat, Feb 26, 2011 at 12:42:04PM +, Bjartur Thorlacius wrote: > > Sounds really cool, but have you figured out how to manage detached > (off-screen) windows? Maybe windows that aren't on screen suck too > much. unmapped windows => xdotool search stupid_window windowmap mapped not v

[dev] Not Using a Window Manager?

2011-02-26 Thread Patrick Haller
Anyone here try using X11 without a window manager? Just using Xresources + specific tools: xbindkeys, xdotool, etc... I'm documenting the setup and adding small tools as needed (x-alt-tab, x-move-resize, x-session). https://github.com/patrickhaller/no-wm Patrick

Re: [dev] which minimal os

2011-02-11 Thread Patrick Haller
On Fri, Feb 11, 2011 at 07:34:48PM +0100, Benoit Chesneau wrote: > > What would you choose for a really minimal OS? arch linux, rolling binary releases reduce maintenance time. what do you want a minimal os for? Patrick

Re: [dev] Config files

2011-02-09 Thread Patrick Haller
On Wed, Feb 09, 2011 at 02:28:42PM +0100, c...@wzff.de wrote: > > An alternative to this would be exporting these variables as > environment variables. This way you don't have to do any parsing on > your own (well, maybe inside the strings but not externally). Of > course it only works for very si

Re: [dev] A Suckless Filesystem

2011-02-06 Thread Patrick Haller
On Sat, Feb 05, 2011 at 05:06:20PM -0500, Brandon LaRocque wrote: > Which one do you use? Why do you use it? What does it have that the > others don't? XFS because http://www.jukie.net/bart/blog/usb2-enclosure-benchmark Lots of tradeoffs with FSs, how about tackle userland first? Patrick

Re: [dev] wmii unicode in the status?

2011-01-23 Thread Patrick Haller
On Sat, Jan 22, 2011 at 11:28:20AM -0500, Eitan Goldshtrom wrote: > Hi. I'm trying to print out a progress bar sort of thing that > represents my remaining battery life. Why use python? dc and printf suffice. Patrick percent=$1 buckets=10 # annoying math decimal=$( dc -e "5 k $buckets $percent

[dev] Re: [dwm] screen locker -> sinac

2010-12-10 Thread Patrick Haller
On Sat, 13 Dec 2008 13:20:33, Thayer Williams wrote: > On Sat, Dec 13, 2008 at 9:57 AM, Neale Pickett wrote: > > Since the list is talking about slock, now might be an appropriate time > > for me to mention again my xss project: > > > > http://woozle.org/~neale/src/xss/ > > > > When I maile

[dev] [slock] getopt + disable XBell option

2010-09-17 Thread Patrick Haller
Hi, I got sick of the XBell in slock, so I added getopt support and a silent option (default = False), patched against the mercurial tip. I read the manifest and some of the source code; some of the projects use getopt, others push config elsewhere. Am not sure which should apply to slock. Pa