[dev] [PATCH] Sets _NET_WM_PID on startup

2013-10-21 Thread Benjamin R. Haskell
This sets _NET_WM_PID on startup. Not sure if any error handling's needed. I used this for quite a while before I switched back to urxvt (for scrollback) for the same purpose as the recent "in $PWD" thread. --- st.c | 9 + 1 file changed, 9 insertions(+) diff --git a/st.c b/st.c index

Re: [dev] [st] Shift Tab does not work

2012-12-13 Thread Benjamin R. Haskell
t, it's error-prone to have two places to keep track of what keys get mapped. So, I fixed this for myself a while ago by removing mappedkeys entirely. Patch attached. -- Best, BenFrom ba24e4423d423a16fe9f0344d2ce5e91100095ac Mon Sep 17 00:00:00 2001 From: "Benjamin R. Haskell"

Re: [dev] [st] new features

2012-08-29 Thread Benjamin R. Haskell
On Wed, 29 Aug 2012, Christoph Lohmann wrote: some changes were made to st. These include: [...] * two ways of setting the title in X11 * OSC 0 $title * OSC 2 $title * OSC 2 settitle $title /* I still don't know why vim uses both */ Whe

Re: [dev] [dwm] X autologin and startup applications

2012-05-13 Thread Benjamin R. Haskell
On Mon, 14 May 2012, Ethan Grammatikidis wrote: On Sun, 6 May 2012 22:49:17 -0700 Amit Uttamchandani wrote: [...] hash surf && surf http://localhost/ [...] hash is a shell feature. bash and others cache the path - all the names - and sometimes when you've installed something since startin

Re: [dev] A tiny IRC connection tool

2012-04-16 Thread Benjamin R. Haskell
On Mon, 16 Apr 2012, Connor Lane Smith wrote: Hey all, I've written a tiny (90 SLOC) tool for connecting to an IRC server and streaming the connection over stdin/stdout, while responding to (and filtering out) pings. I just wrote this so I could write simpler IRC bots without having to worry

Re: [dev] xid of a current window

2012-03-25 Thread Benjamin R. Haskell
On Sun, 25 Mar 2012, Swiatoslaw Gal wrote: -- From Ivan Kanakarakis 25-03-2012 at 15:20 -- $ xdotool getactivewindow XGetWindowProperty[_NET_ACTIVE_WINDOW] failed (code=1) xdo_get_active_window reported an error You could use the focused window instead (which was what you ori

Re: [dev] cat unique deice identifier e.g. serial number

2012-02-08 Thread Benjamin R. Haskell
On Thu, 9 Feb 2012, hiro wrote: mhm, so there's no native way on a linux? Depending on your kernel, the DMI information may be available via sysfs. You asked for the serial number before. I have that at: /sys/class/dmi/id/board_serial Contents are equivalent to `dmidecode -s baseboard-se

Re: [dev] [st] 0.2 is out

2012-02-08 Thread Benjamin R. Haskell
On Wed, 8 Feb 2012, ilf wrote: On 02-08 09:39, Benjamin R. Haskell wrote: rxvt-unicode uses the wonderful optimization of not really caring whether everything gets displayed. I don't know if every one of those output lines is rendered on screen once. But it doesn't need to, sin

Re: [dev] [st] 0.2 is out

2012-02-08 Thread Benjamin R. Haskell
On Wed, 8 Feb 2012, ilf wrote: On 02-08 00:14, Aurélien Aptel wrote: As I said previously somewhere on the list, I've tagged the last changeset of the default branch as 0.2. Checking it out for the first time since 0.1.1. I am running the same tmux session in both rxvt-unicode and st next to

Re: [dev] [st] font help

2012-01-22 Thread Benjamin R. Haskell
On Mon, 23 Jan 2012, Benjamin R. Haskell wrote: I had similar results until I compiled the st terminfo file by running: tic st Sorry: tic st.info

Re: [dev] [st] font help

2012-01-22 Thread Benjamin R. Haskell
On Sun, 22 Jan 2012, Christopher Lunsford wrote: I'm having problems displaying fonts. Every font I use, besides the default, leaves the display in a messy state. My locale is en_US.utf8 if it makes a difference and using the repo's tip. Here is a screenshot: http://i43.tinypic.com/241r1jp.jpg

Re: [dev] dwm and Xwindow

2011-11-16 Thread Benjamin R. Haskell
On Wed, 16 Nov 2011, Pascal Wittmann wrote: On 11/16/2011 10:30 PM, Justin Pogue wrote: On Wed, Nov 16, 2011 at 3:20 PM, Guilherme Lino wrote: hello Is there any way to dim the brightness or gamma of dwm unfocused windows?? cumps Not that I know of for *all* windows, but if I remember right

Re: [dev] DWM Xinerama

2011-11-10 Thread Benjamin R. Haskell
On Thu, 10 Nov 2011, Roger wrote: I'm using dwm-5.9. I'd love to get a dwm-.ebuild into Gentoo, but some hate cvs/svn/git ebuilds and I have a tough time getting them into Gentoo. It doesn't make a whole lot of sense to have an ebuild in the first place for a piece of software that requ

Re: [dev] [tabbed] how focusing is handled

2011-09-22 Thread Benjamin R. Haskell
On Thu, 22 Sep 2011, Roman Z. wrote: On Wed, Sep 21, 2011 at 09:48:11PM +0200, Roman Z. wrote: Currently, if you run a program in tabbed and move the mouse away from that window, the program will not respond anymore. Since this is much like how X behaves when you run no window manager, I've

Re: [dev] Mailing list instructions?

2011-07-04 Thread Benjamin R. Haskell
On Mon, 4 Jul 2011, Connor Lane Smith wrote: On 4 July 2011 22:36, Benjamin R. Haskell wrote: possibly message #997, based on the URL: http://www.mail-archive.com/dev@suckless.org/msg00997.html I don't why you're looking there and not at the actual suckless archive,[1] which shows

[dev] Mailing list instructions?

2011-07-04 Thread Benjamin R. Haskell
The mailing list page¹ mentions that message 'N' can be fetched by sending a message to dev+get-N@MAILHOST. I tried to get the dwm-urgent-blink patch I mentioned before as an email (possibly message #997, based on the URL: http://www.mail-archive.com/dev@suckless.org/msg00997.html ) by sending

Re: [dev] [dwm] sloppy focus

2011-07-04 Thread Benjamin R. Haskell
On Mon, 4 Jul 2011, Benjamin R. Haskell wrote: On Mon, 4 Jul 2011, Christoph Lohmann wrote: Hello, Benjamin R. Haskell wrote: So, broadening: what (if anything) do dwm users use for "notifications" or indicating urgency? [...] urxvt.urgentOnBell: true Ah, thanks. Halfway

Re: [dev] [dwm] sloppy focus

2011-07-04 Thread Benjamin R. Haskell
On Mon, 4 Jul 2011, Christoph Lohmann wrote: Hello, Benjamin R. Haskell wrote: In other wm's, #2 is often handled by having a little flashing systray icon. So, broadening: what (if anything) do dwm users use for "notifications" or indicating urgency? my IRC client is

Re: [dev] [dwm] sloppy focus

2011-07-04 Thread Benjamin R. Haskell
On Mon, 4 Jul 2011, Josh Rickmar wrote: Um, why is a systray needed for IRC? It's not necessary for IRC, per se. I wrote: Without a systray, I don't understand where one gets the spare screen real estate to dedicate to IRC. I don't understand how to effectively use IRC without doing one o

Re: [dev] [dwm] sloppy focus

2011-07-04 Thread Benjamin R. Haskell
On Mon, 4 Jul 2011, Bjartur Thorlacius wrote: Þann mán 4.júl 2011 15:14, skrifaði Connor Lane Smith: Interesting, those on IRC were very 'for' this idea. Different demographics? Oh you silly ML people! So people who use mice prefer laggy ML communications over IM? I hate mice, but I also

Re: [dev] [dwm] segfault

2011-06-27 Thread Benjamin R. Haskell
On Wed, 22 Jun 2011, Arian Kuschki wrote: hg summary shows parent: 1560:e181c9cf318e tip [...] How can I diff my local version against tip? Sorry am more of a git user. [Later] On Wed, 22 Jun 2011, Arian Kuschki wrote: On 22 June 2011 15:44, Andrew Hills wrote: On Wed, Jun 22, 2011 at 9

Re: [dev] ideas on suckless file manager

2011-06-07 Thread Benjamin R. Haskell
On Tue, 7 Jun 2011, Le Tian wrote: On Tue, Jun 7, 2011 at 11:25 AM, Connor Lane Smith wrote: [...] (I find inverting the colours actually helps to a worrying degree.) Interesting... Yeah, "I find inverting the colours actually helps to a worrying degree." I think this should be a default

Re: [dev] TermKitjkjkjn

2011-05-20 Thread Benjamin R. Haskell
On Fri, 20 May 2011, Connor Lane Smith wrote: On 20 May 2011 19:58, Benjamin R. Haskell wrote: dwm's focus rules still surprise me sometimes (mainly in monocle mode where urxvt doesn't occupy the entire screen, due to the screen not being evenly divisible by character cells). st

Re: [dev] TermKitjkjkjn

2011-05-20 Thread Benjamin R. Haskell
Subject: Re: [dwm] TermKitjkjkjn dwm's focus rules still surprise me sometimes (mainly in monocle mode where urxvt doesn't occupy the entire screen, due to the screen not being evenly divisible by character cells). The jkjkjn tacked on to the subject there was me trying to 'shake' an apparen

Re: [dev] TermKit

2011-05-20 Thread Benjamin R. Haskell
On Fri, 20 May 2011, Andrew Hills wrote: On Fri, May 20, 2011 at 2:06 PM, Kurt H Maier wrote: > [...] wouldn't something akin to > > history | sort -r | sed '1d; s/^[ \t]*[0-9]*[ \t]*//' > > work just as well? Didn't realize `sed` didn't have \d, but why [ \t] instead of \s? [...] (Don't

Re: [dev] TermKitjkjkjn

2011-05-20 Thread Benjamin R. Haskell
On Fri, 20 May 2011, Andrew Hills wrote: On Fri, May 20, 2011 at 2:06 PM, Kurt H Maier wrote: [...] wouldn't something akin to history | sort -r | sed '1d; s/^[ \t]*[0-9]*[ \t]*//' work just as well? Didn't realize `sed` didn't have \d, but why [ \t] instead of \s? [...] (Don't forget to

Re: [dev] TermKit

2011-05-20 Thread Benjamin R. Haskell
On Fri, 20 May 2011, Kurt H Maier wrote: Any reason not to sort(1) them before you feed them to perl? And don't get me wrong: perl is my favorite language, but wouldn't something akin to history | sort -r | sed '1d; s/^[ \t]*[0-9]*[ \t]*//' work just as well? I would've changed it to use

Re: [dev] TermKit

2011-05-20 Thread Benjamin R. Haskell
On Fri, 20 May 2011, Andrew Hills wrote: Thanks for the Perl-readability tip. No prob. On Fri, May 20, 2011 at 12:58 PM, Benjamin R. Haskell wrote: Don't have `tac` installed? (I think it's in linux-utils or core-utils, but maybe it's linux- and/or GNU-centric.) I do mos

Re: [dev] TermKit

2011-05-20 Thread Benjamin R. Haskell
On Fri, 20 May 2011, Andrew Hills wrote: On Fri, May 20, 2011 at 12:16 PM, Suraj N. Kurapati wrote: history | xmessage -file - & I keep this ugly mess around in for convenience: h() { `history | perl -e 'while(){s/\s+\d+\s+//;push @o,$_;}for($i=$#o-1;$i>=0;$i--){print $o[$i];}' | dmenu -b

Re: [dev] [ANN] sabotage 2011-04-30, a musl+busybox based distribution

2011-05-15 Thread Benjamin R. Haskell
On Sun, 15 May 2011, Ethan Grammatikidis wrote: On 13 May 2011, at 9:35 pm, Bjartur Thorlacius wrote: On 5/12/11, Ethan Grammatikidis wrote: A bit late but I thought it worth mentioning you don't even have to install Opera 11, just untar it and run in situ. I wrote a little script to cd to

Re: [dev] Panels and Touch support

2011-04-09 Thread Benjamin R. Haskell
On Sun, 10 Apr 2011, Benjamin R. Haskell wrote: On Wed, 6 Apr 2011, Christoph Lohmann wrote: Hello comrades, attached is a patch for dwm, which will add real support for the _NET_WM_WINDOW_TYPE. What is this patch against? I wanted to try this out, but even the first hunk of the patch

Re: [dev] Panels and Touch support

2011-04-09 Thread Benjamin R. Haskell
On Wed, 6 Apr 2011, Christoph Lohmann wrote: Hello comrades, attached is a patch for dwm, which will add real support for the _NET_WM_WINDOW_TYPE. What is this patch against? I wanted to try this out, but even the first hunk of the patch doesn't apply against hg tip. And the parent liste

Re: [dev] [surf] [PATCHES] (1) GConf URL schema handlers (2) delete _SURF_GO xprop (3) close stdout sending XID

2011-04-09 Thread Benjamin R. Haskell
On Sat, 9 Apr 2011, Bjartur Thorlacius wrote: Adam Strzelecki wrote: It is safer to remove this atom just after it is set in case we send some URL containing passwords or auth tokens I'm confused as to the state between setting _SURF_GO and removing it. It smells like a race condition to me, b

Re: [dev] Sup and dmc

2011-03-31 Thread Benjamin R. Haskell
On Fri, 1 Apr 2011, hiro wrote: I just looked at the source and what is this shit?!?! Yikes. I thought hiro was overreacting, until I looked at the source of the HTML MIME part. Wow. That's "Office"-grade shit. Horribly verbose, and only aimed at a specific subset of browsers:

Re: [dev] Re: [dwm] "reload" configuration?

2011-03-27 Thread Benjamin R. Haskell
On Sat, 26 Mar 2011, Marcin Cieslak wrote: Benjamin R. Haskell wrote: But beyond that, looping or manually launching dwm doesn't solve the problem that all the tag information is lost between restarts. wmii gets around it by dumping the tag information into X props (still loses layout

Re: [dev] [dwm] "reload" configuration?

2011-03-25 Thread Benjamin R. Haskell
On Fri, 25 Mar 2011, Anselm R Garbe wrote: On 25 March 2011 13:47, Benjamin R. Haskell wrote: [OT] Where did everyone pick up this shell scripting style with the extra newline? ("while x\ndo\n" instead of "while x ; do\n"?) Old plain sh required the newline style (not

Re: [dev] [dwm] "reload" configuration?

2011-03-25 Thread Benjamin R. Haskell
On Fri, 25 Mar 2011, Anselm R Garbe wrote: On 25 March 2011 12:46, Benjamin R. Haskell wrote: So, in the early stages of trying out dwm, the thing I'm finding most frustrating is the need to restart after changing config.h. My first attempt was to modify spawn such that if arg->v[0]

[dev] [dwm] "reload" configuration?

2011-03-25 Thread Benjamin R. Haskell
So, in the early stages of trying out dwm, the thing I'm finding most frustrating is the need to restart after changing config.h. My first attempt was to modify spawn such that if arg->v[0] is "dwm", it doesn't fork, just exec's. But, when doing that, all the windows' tag information is lost,

Re: [dev] [wmii] running script on 'desktop'?

2011-03-22 Thread Benjamin R. Haskell
On Tue, 22 Mar 2011, Benjamin Cathey wrote: Just curious if it is possible to run a script on the background image (sort of conky-ish)? I'm thinking not due to the nature of wmii, however I thought it couldn't hurt to ask. The root window's still there, and you can still draw on it. I'd nev

Re: [dev] wmii hardware keyboard shortcut layout at boot problem

2011-03-21 Thread Benjamin R. Haskell
On Mon, 21 Mar 2011, Eitan Goldshtrom wrote: I set the keyboard layout to Dvorak with the KEYBOARD variable in rc.conf. When I start wmii though all my keyboard shortcuts are set to the hardware keys, which are QWERTY. I'm using Arch Linux and I installed xbindkeys, or at least some X packag

Re: [dev] Re: How do you cope with OSX? (if at all)

2011-03-19 Thread Benjamin R. Haskell
On Sat, 19 Mar 2011, pancake wrote: On 18/03/2011, at 18:42, Kurt H Maier wrote: I'll stick with thinkpads. The keyboards are nicer, I don't have to paw at a touchpad, [...] Paw at touchpad? What do 'paw' means? Paw is the word used for most animal's feet. Used as a verb, it implies tha

Re: [dev] wmii status bar config

2011-03-17 Thread Benjamin R. Haskell
On Thu, 17 Mar 2011, Le Tian wrote: Hi again, I'm trying to find out how to make a custom status bar in wmii. I have found "status()" lines in /home/wmii.rc file(hmmm what is it doing here?!) Maybe your '$HOME' env var was unset or improperly set at some point? these is what I found: statu

Re: [dev] wmii noob key binding help

2011-02-25 Thread Benjamin R. Haskell
On Fri, 25 Feb 2011, Eitan Goldshtrom wrote: I've put the following directly into the events() function of my wmiirc script in the KeyGroup Other section Key $MODKEY-z amixer sset PCM 4+ & Key $MODKEY-v eval wmiir setsid amixer sset PCM 4+ & I've since quit wmii, logged out, logged back

Re: [dev] wmii noob key binding help

2011-02-24 Thread Benjamin R. Haskell
On Thu, 24 Feb 2011, Suraj Kurapati wrote: On Thu, Feb 24, 2011 at 11:25 AM, Benjamin R. Haskell wrote: exec'ing wmii via the 'action' menu, which borks multi-monitor layouts; anyone have a better way? Have your wmiirc re-exec itself (as opposed to re-execing wmii). Hm

Re: [dev] wmii noob key binding help

2011-02-24 Thread Benjamin R. Haskell
On Wed, 23 Feb 2011, Eitan Goldshtrom wrote: I tried that just now and it didn't work. I also tried a few variations that each didn't work. I checked the "keys" file and it looks like the 2 key combinations aren't in the file. I thought they would be added because of the event declarations, bu

Re: [dev] wmii noob key binding help

2011-02-22 Thread Benjamin R. Haskell
On Tue, 22 Feb 2011, Eitan Goldshtrom wrote: Hi. So I read through as much as I could find on the subject of defining my own keybindings. I can see how to do it from the 9P virtual filesystem that wmii has setup, but I am under the impression that it can be done moreproperly?...via wmiirc_

Re: [dev] wmii: Tagging from .wmiirc not working

2011-02-22 Thread Benjamin R. Haskell
On Tue, 22 Feb 2011, Steve Ryan wrote: On 02/22/2011 12:40 PM, Benjamin R. Haskell wrote: On Tue, 22 Feb 2011, Steve Ryan wrote: Hello all, I just downloaded wmii the other day and have been so far loving it. Dynamic tagging is a wonderful idea! However, I've had one main pr

Re: [dev] wmii: Tagging from .wmiirc not working

2011-02-22 Thread Benjamin R. Haskell
On Tue, 22 Feb 2011, Steve Ryan wrote: Hello all, I just downloaded wmii the other day and have been so far loving it. Dynamic tagging is a wonderful idea! However, I've had one main problem. Using the default sh version of .wmiirc, I haven't been able to get it so that when I run, say, Th

Re: [dev] st font change

2010-11-17 Thread Benjamin R. Haskell
On Wed, 17 Nov 2010, MItchell Church wrote: On Wed, Nov 17, 2010 at 5:36 PM, Aurélien Aptel wrote: On Wed, Nov 17, 2010 at 10:10 PM, MItchell Church wrote: Is anyone else having trouble getting st to accept font changes? I've tried numerous strings using xfontsel, many of which work fine in

Re: [dev] Stripping html from email

2010-08-23 Thread Benjamin R. Haskell
On Mon, 23 Aug 2010, Suraj Kurapati wrote: > On Mon, Aug 23, 2010 at 8:46 PM, Anthony J. Bentley wrote: > >> Is there currently a tool or script that I can use to strip html > >> from emails? > > > > mhshow-show-text/html: lynx -dump %F | less > > > > Lynx sucks but it sorta works well enough her