Re: [dev] [surf] searchengines and toggleflash for 0.2

2009-10-19 Thread Peter John Hartman
Hi, I agree with both the toggleflash and the history (of yesterday) patches going around and they (or something like them) have my vote for inclusion in vanilla. Two comments. (1) The history should be toggle-able or, at the very least, define-able. I'll slap out a patch when I have time. (2

Re: [dev] [surf] next release

2009-10-21 Thread Peter John Hartman
Hi, Two brief notes. (1) * removing urlbar/searchbar and using dmenu instead I'm not sure if this is so attractive, since dmenu does not support x paste (without a patch) and one always finds oneself (or at least I do) cutting and pasting into the searchbar. The ultimate solution, it seems to

Re: [dev] [surf] next release

2009-10-21 Thread Peter John Hartman
On Wed, 21 Oct 2009, Anselm R Garbe wrote: 2009/10/21 Peter John Hartman : (1) * removing urlbar/searchbar and using dmenu instead I'm not sure if this is so attractive, since dmenu does not support x paste (without a patch) and one always finds oneself (or at least I do) cuttin

Re: [dev] [surf] next release

2009-10-21 Thread Peter John Hartman
On Wed, 21 Oct 2009, Anselm R Garbe wrote: 2009/10/21 Peter John Hartman : (1) * removing urlbar/searchbar and using dmenu instead I'm not sure if this is so attractive, since dmenu does not support x paste (without a patch) and one always finds oneself (or at least I do) cuttin

Re: [dev] [surf] next release

2009-10-21 Thread Peter John Hartman
On Wed, 21 Oct 2009, Julien Steinhauser wrote: On Wed, Oct 21, 2009 at 09:17:52AM -0400, Peter John Hartman wrote: What about cases in which one wishes to both type a few words and then paste? For example, when I want to do a smart prefix search (via dmenu) on Bob McCrue (who sits in my

Re: [dev] [surf] next release

2009-10-21 Thread Peter John Hartman
On Wed, 21 Oct 2009, Anselm R Garbe wrote: 2009/10/21 Anselm R Garbe : 2009/10/21 Peter John Hartman : On Wed, 21 Oct 2009, Julien Steinhauser wrote: On Wed, Oct 21, 2009 at 09:17:52AM -0400, Peter John Hartman wrote: What about cases in which one wishes to both type a few words and

Re: [dev] [surf] next release

2009-10-21 Thread Peter John Hartman
On Wed, 21 Oct 2009, Anselm R Garbe wrote: 2009/10/21 pancake : I always use shift+insert or middleclick for pasting, what's the unix way to paste? ^p is already supported in surf, and mozilla load pages if you paste them in the web canvas...so which is the 'correct' one? :) And yeah i didn'

Re: [dev] [surf] view source?

2009-10-21 Thread Peter John Hartman
On Wed, 21 Oct 2009, Julien Steinhauser wrote: Hello, when I build last tip, I have this error : surf.c: In function ‘source’: surf.c:695: error: implicit declaration of function ‘webkit_web_view_get_view_source_mode’ surf.c:696: error: implicit declaration of function ‘webkit_web_view_set

[dev] [dmenu] Putting key combinations in config.h

2009-10-21 Thread Peter John Hartman
Hi, In light of the parallel discussion re surf and dmenu, I thought I'd open up the following suggestion: Can we put the various keybindings used in dmenu in config.h rather than dmenu.c? There is one case where I know this will prove useful, namely, the keybinding to close dmenu, which current

Re: [dev] [dmenu] Putting key combinations in config.h

2009-10-21 Thread Peter John Hartman
On Wed, 21 Oct 2009, Colin Shea wrote: On Wed, Oct 21, 2009 at 1:15 PM, Peter John Hartman wrote: Hi, In light of the parallel discussion re surf and dmenu, I thought I'd open up the following suggestion: Can we put the various keybindings used in dmenu in con

Re: [dev] [dmenu] Putting key combinations in config.h

2009-10-21 Thread Peter John Hartman
On Wed, 21 Oct 2009, markus schnalke wrote: [2009-10-21 14:48] Peter John Hartman On Wed, 21 Oct 2009, Colin Shea wrote: On Wed, Oct 21, 2009 at 1:15 PM, Peter John Hartman wrote: Can we put the various keybindings used in dmenu in config.h rather than dmenu.c? But

Re: [dev] [surf] next release

2009-10-22 Thread Peter John Hartman
On Thu, 22 Oct 2009, Anselm R Garbe wrote: 2009/10/21 Uriel : Surf should *not* handle downloads or display source, this are clearly and obviously best handled by external tools and there is zero reason for them to be part of any browser. I disagree with downloads, because several stuff can

Re: [dev] [surf] next release

2009-10-22 Thread Peter John Hartman
On Thu, 22 Oct 2009, Julien Steinhauser wrote: On Thu, Oct 22, 2009 at 02:42:49PM +0200, pancake wrote: Btw I still find necessary the contextual menu to get URL of image, URL of link .. Download in a separated window/client/app. I totally agree, it was a good feature that I would also wel

[dev] [surf] clipboard vs. primary

2009-11-03 Thread Peter John Hartman
Hi, I find that Firefox and perhaps others like to "paste" from the CLIPBOARD rather than PRIMARY. Hence, in clipboard() in surf.c I have to duplicate the following line (replacing PRIMARY with CLIPBOARD): gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), c->linkhover ? c->linkh

Re: [dev] [surf] clipboard vs. primary

2009-11-04 Thread Peter John Hartman
ting in Firefox, maybe this is the reason. I'm not really using surf so I don't know what the problem is, care to explain? // Anders On Tue, Nov 3, 2009 at 4:20 PM, Peter John Hartman wrote: Hi, I find that Firefox and perhaps others like to "paste" from the CLIPBOARD rathe

Re: [dev] [surf] surf-0.3 released

2009-11-13 Thread Peter John Hartman
Confirmed. Get the latest webkit. Peter On Fri, 13 Nov 2009, Jorge Vargas wrote: On Fri, Nov 13, 2009 at 3:38 AM, Moritz Wilhelmy wrote: On Fri, Nov 13, 2009 at 02:59:31AM -0600, Jorge Vargas wrote: On Fri, Oct 30, 2009 at 7:05 AM, Enno Boland (Gottox) wrote: surf-0.3 is out. There are s

[dev] [dwm] an update of the moveresize patch

2009-11-18 Thread Peter John Hartman
Hi, I find it useful to move and resize windows without the mouse in dwm. Here's a revision of an old patch that was out there. Mine is based on 5.6.1. Caveat emptor: I'm not sure about some of the innards of dwm. I have some comments in the code below which I'd like answers to, if anyone has

Re: [dev] [surf] editing textboxes with external command

2009-11-19 Thread Peter John Hartman
I second this motion! Elinks allows you to launch an external editor too, which is very convenient. I haven't seen a patch though. Peter On Thu, 19 Nov 2009, Moritz Wilhelmy wrote: Hi there, vimperator includes a keybinding for editing text boxes within an external editor. Since I really d

Re: [dev] Suckless VOIP client?

2009-12-02 Thread Peter John Hartman
pjsua is a bit of a hack; i'd also like to see a project started up. peter On Wed, 2 Dec 2009, Doki Pen wrote: What do ppl use? I'd love to find a way to make calls from the shell, sans-gui.

Re: [dev] [dmenu] Vertical bug

2009-12-03 Thread Peter John Hartman
A second bug (I think): With the latest tip, I get the nice cursor, but if I do -l 10 the cursor isn't there. Peter On Wed, 2 Dec 2009, Tadeusz Sośnierz wrote: Hello, Looks like dmenu (in tip) ignores the -l argument, assuming 10 anyway. Regards, Ted

[dev] [dmenu] history patch

2009-12-15 Thread Peter John Hartman
Hi folks, Here's a history patch patched to dmenu tip. This is pretty useful in conjunction with surf. I point the surf "^G" to: dmenu -hist /home/peterjh/.dmenu.history -b -l 10 < ~/.surf/history (Of course, it only makes sense in conjunct with the surf history patch as well.) Honestly, it

Re: [dev] [DWM] suggestion for dwm

2010-01-03 Thread Peter John Hartman
Hi, I agree w/r/t removing the status feature in dwm. If it isn't a trayer, then what is its purpose? Of course, primary motivation is that an alternative standalone trayer can do whatever it is that the status feature is doing anyway (or so it seems). Hence, it is superfluous. Peter -- sic

Re: [dev] GSoC 2010

2010-03-03 Thread Peter John Hartman
I agree about the issue trackers + the mail integration. A small suggestion: none of the issue/bug tracking systems do collaboration very well either. What I mean by "collaboration" is the capacity to pass a single document back and forth with several "notes" appended to it. a giant "comments"

Re: [dev] Re: [dmenu] subwindow patch

2010-03-30 Thread Peter John Hartman
nice! i've always wanted something like this. peter -- sic dicit magister P. http://individual.utoronto.ca/peterjh/ On Tue, 30 Mar 2010, Connor Lane Smith wrote: On 30 March 2010 23:35, Connor Lane Smith wrote: I thought it would be nice for certain programs (like surf) to spawn dmenu wit

[dev] [surf] shell script to do bookmarks, history, and other things

2010-03-31 Thread Peter John Hartman
Hi Folks, So, I've cobbled together the attached shell script to do most of what I want to do with surf, including history, smart prefixes, and bookmarks. The upshot is that one doesn't need the history patch and the searchengines patch. I'd appreciate comments on this, esp.\ with respect to how

Re: [dev] [surf] shell script to do bookmarks, history, and other things

2010-04-01 Thread Peter John Hartman
o the find as well. surf.sh ====== #!/bin/sh # v1.1 # AUTHORS: wart_ (Peter John Hartman), pancake, nibbles # v1.0 # did stuff # v1.1 # * added find history # * removed the tags (useless, right?) # * actually store stuff in history (and not only when you bookmark) # * add

Re: [dev] [surf] shell script to do bookmarks, history, and other things

2010-04-02 Thread Peter John Hartman
here (cf. my previous script). If it is something overlooked, then can we merge in these LOC (again cf. the previous script, or I'll send a surf2.sh)? Best, Peter -- sic dicit magister P. http://individual.utoronto.ca/peterjh/ On Fri, 2 Apr 2010, Nibble wrote: On Thu, 1 Apr 2010 21:41:48 -040

[dev] [surf] segfault

2010-04-02 Thread Peter John Hartman
Hi, Sorry to report without much more analysis. Attached is the output of gdb /usr/local/bin/surf core. I'm running the latest surf hg tip. webkit is 1.1.15.4. system is gentoo. Here are the conditions under which (more often than not) one can generate the segfault. NB: sometimes it segfaul

Re: [dev] [surf] shell script to do bookmarks, history, and other things

2010-04-02 Thread Peter John Hartman
dia.org/wiki/$arg"; ;; "y") # youtube uri="http://www.youtube.com/results?search_query=$arg&aq=f"; ;; *) uri="$sel" ;; esac xprop -id $xid -f WM_ICON

Re: [dev] [surf] segfault

2010-04-02 Thread Peter John Hartman
I should stress that it is, even for me, intermittent, but intermittent without any change in the environment (that's what makes it odd). E.g. I run these two commands back to back. One time it works, the next it doesn't. pete...@trilleee2 ~/bin $ surf -x file:///home/peterjh/.surf/startpage2.h

[dev] [surf] tracking error

2010-06-02 Thread Peter John Hartman
Below is a very minor addition to surf.c. In my bmarks-history script, I store uris into a history file, but I wanted to only store sucessful or real uris there, and not typos. There was no way to determine this before. Now, I can check _SURF_URI for the word "Error" if the uri fails. This req

Re: [dev] [surf] shell script to do bookmarks, history, and other things

2010-06-04 Thread Peter John Hartman
I updated bmarks-history on the wiki a couple days ago. If you read the config.def.h carefully, _SURF_URI is what xprop /reads/ whereas _SURF_GO is what it /sets/. Peter On Fri, 4 Jun 2010 12:50:38 +0200, Nibble wrote: > On Fri, 4 Jun 2010 11:02:01 +0200 > cryptix wrote: > > > Hi, > > > >

Re: [dev] [OT] looking for a suckless maildir/mbox lib

2010-06-04 Thread Peter John Hartman
Did you ever release "dmc"? I recall a post from fall of last year... but can't find it under "code" at suckless.org. Peter On Fri, 04 Jun 2010 14:09:03 +0200, pancake wrote: > dmc > > On 06/04/10 13:11, Julien Pecqueur wrote: > > Hi, > > > > I'm looking for a simple lib to manipulate emails

Re: [dev] [OT] Music?

2010-09-08 Thread Peter John Hartman
On Wed, Sep 08, 2010 at 05:29:06PM -0400, Kris Maglione wrote: > On Thu, Sep 09, 2010 at 12:12:24AM +0300, Nikhilesh S wrote: > >What kind of music do you listen to? Your favourite artists, genres, > >etc.? > > Oh no... No, no, no... This is going to be one of those threads > that turns into a se

[dev] dwm puzzle

2010-09-11 Thread Peter John Hartman
Hi, Before an upgrade to hg tip last month (long overdue, maybe about a year overdue) firefox and open office used to "behave properly": if I'm in tile mode and fire up firefox, e.g., it tiles as well. But now, after the upgrade, both firefox and open office behave like elitists: not only do the

[dev] Re: dwm puzzle [fixed; with blame]

2010-09-11 Thread Peter John Hartman
On Sat, Sep 11, 2010 at 01:35:10PM -0400, Peter John Hartman wrote: > Hi, > > Before an upgrade to hg tip last month (long overdue, maybe about a year > overdue) firefox and open office used to "behave properly": if I'm in > tile mode and fire up firefox, e.g., it

Re: [dev] Re: dwm puzzle [fixed; with blame]

2010-09-11 Thread Peter John Hartman
On Sat, Sep 11, 2010 at 04:20:35PM -0400, TJ Robotham wrote: > On Sat, Sep 11, 2010 at 03:23:18PM -0400, Peter John Hartman wrote: > > On Sat, Sep 11, 2010 at 01:35:10PM -0400, Peter John Hartman wrote: > > > But now, after the upgrade, both firefox and open office behave like &

Re: [dev] Re: dwm puzzle [fixed; with blame]

2010-09-12 Thread Peter John Hartman
On Sun, Sep 12, 2010 at 11:24:23AM +0200, Szabolcs Nagy wrote: > * Peter John Hartman [2010-09-11 15:23:18 -0400]: > > This fixes it: > > > > diff -r 050d521d66d8 -r c361034c5a1c dwm.c > > --- a/dwm.c Tue Aug 24 13:13:20 2010 +0100 > > +++ b/dwm.c

Re: [dev] Re: dwm puzzle [fixed; with blame]

2010-09-12 Thread Peter John Hartman
On Sat, Sep 11, 2010 at 05:39:45PM -0400, TJ Robotham wrote: > On Sat, Sep 11, 2010 at 04:44:12PM -0400, Peter John Hartman wrote: > > > > I should have said in my original report that the MODKEY+shift+space > > solution is the way I dealt with these problems; I had s

Re: [dev] [OT] ubuntu moves to wayland from xorg

2010-11-05 Thread Peter John Hartman
Hi all, On a (slightly) related off-topic note, I'm about to purchase one of those iPad ripoffs (zt180), and I'm curious to find out how far one can go without Android on it. In particular, I suspect a suckless project is in order to: 1. Emulate the onscreen keyboard (at a lowish X level presuma

Re: [dev] dmenu patch to return all matching items (for a new dmenu-powered music player interface)

2010-11-11 Thread Peter John Hartman
On Thu, Nov 11, 2010 at 04:37:37PM +, Connor Lane Smith wrote: > On 11 November 2010 16:00, Michael Farnbach wrote: > > Hey, this brings up a question. > > I've noticed that suckless's apps push as many configuration items into the > > compile time as they can (just a high-level observation, I

Re: [dev] dmenu patch to return all matching items (for a new dmenu-powered music player interface)

2010-11-11 Thread Peter John Hartman
On Thu, Nov 11, 2010 at 04:54:28PM -0500, TJ Robotham wrote: > On Thu, Nov 11, 2010 at 02:40:54PM -0500, Peter John Hartman wrote: > > I've made this request before, and always get yelled at, but it would be > > nice if dmenu had a config.h file which allowed one to

Re: [dev] dmenu patch to return all matching items (for a new dmenu-powered music player interface)

2010-11-11 Thread Peter John Hartman
On Thu, Nov 11, 2010 at 06:59:03PM -0500, TJ Robotham wrote: > Meh, I can't really think of a particularly compelling reason to put config.h > back in, but from the perspective of someone who was using it, its removal > feels strange and arbitrary and a bit like someone insisting that I get out of

[dev] on screen keyboards and dwm, part II

2010-12-01 Thread Peter John Hartman
Hi, There's an old forum thread from last year that just seems to have died out about the subject. Did those patches ever get into main dwm? If so, they don't look anything like the one that, e.g., Gottox recommended. As for the Gottox patch (http://s01.de/~tox/hg/dwm/rev/d3c3a8018349) this did

[dev] on screen keyboards and dwm, part III

2010-12-18 Thread Peter John Hartman
Hi, After some playing, there are two things that dwm needs to get onscreen keyboards to play anywhere near nice. 1. the focus patch to allow xvkbd to not steal the focus: http://s01.de/~tox/hg/dwm/rev/d3c3a8018349 2. another focus-ish patch to have focusstack skip xvkbd: http://www.mail-archiv

[dev] dwm + onscreen keyboard

2010-12-20 Thread Peter John Hartman
Hi folks, Below is a diff of the modifications I made to make xvkbd play more nice with dwm and to make dwm more friendly, in general, to touchscreens. Basic mods: 1. Added ISPANEL (really should be ISKBD) definition which gets checked here and there, notably in focus() (so it don't steal focus)

Re: [dev] dwm battery level alarm system

2011-01-26 Thread Peter John Hartman
acpid e.g. == #!/bin/sh # /etc/acpi/default.sh # Default acpi script that takes an entry for all actions . /home/peterjh/.bash_functions # How long to wait once the lid is closed before going into suspend LID_STALL=60 # How low can we go. BAT_LIMIT=325 # script HIB_SCRIPT=/home/peterjh/bin/hib.s

Re: [dev] dwm battery level alarm system

2011-01-26 Thread Peter John Hartman
Hi On Wed, Jan 26, 2011 at 11:57:36PM +0100, Danilo Bargen wrote: > Hi > > On Wed, Jan 26, 2011 at 11:21 PM, Peter John Hartman > wrote: > > acpid > > Thanks for your answer. acpid is a good idea, as it also works when > dwm hasn't been started. But it only

[dev] onscreen keyboards (xvkbd), dwm, and dmenu (part II with a patch to dwm)

2011-01-29 Thread Peter John Hartman
Hi folks, A few things: 1. Below is a very simple patch to dwm to make it play nice with onscreen keyboards. It could be improved, and especially I want to implement this: * If the osk (on screen keyboard, e.g., xvkbd) has the focus but it is focused on, say, app Q, then app Q and not osk shou

Re: [dev] onscreen keyboards (xvkbd), dwm, and dmenu (part II with a patch to dwm)

2011-01-31 Thread Peter John Hartman
> Another issue is to shrink the client area available to the managed > clients so that the keyboard does not cover the clients. Probably > a meter of taste, but it is not nice to write to the client where the > cursor is covered by the keyboard and you do not see what you are > writing (that is on

Re: [dev] onscreen keyboards (xvkbd), dwm, and dmenu (part II with a patch to dwm)

2011-02-01 Thread Peter John Hartman
On Wed, Feb 02, 2011 at 12:36:30AM +0100, Łukasz Pankowski wrote: > based hack but I went on with gestures patch found on dwm wiki. I use > "l"/"r" gestures on a window title for focusing prev/next client and I tried that gestures patch a few months ago and got no love whatsover. Did you have to d

Re: [dev] onscreen keyboards (xvkbd), dwm, and dmenu (part II with a patch to dwm)

2011-02-02 Thread Peter John Hartman
On Wed, Feb 02, 2011 at 08:48:26AM +0100, Łukasz Pankowski wrote: > Patch command refused to apply it with "Only garbage was found in the > patch input." but with -n option (The patch is in normal diff format) > the config.h part applied (but patch prompted for the file name). > I think patch stopp

Re: [dev] which minimal os

2011-02-17 Thread Peter John Hartman
On Thu, Feb 17, 2011 at 09:55:30AM -0700, Michael Farnbach wrote: > Still I hope it was useful. Let me know how your search works out. Let him know *off* the list. -- sic dicit magister P PhD Candidate Collaborative Programme in Ancient and Medieval Philosophy University of Toronto http://indiv

Re: [dev] browser flash videos and mpeg plugins

2011-02-26 Thread Peter John Hartman
it'll also help to fix your /etc/hosts via http://someonewhocares.org/hosts/zero/hosts then at least you aren't in a race with the ads. has anyone noticed that within the last few weeks, sites no longer establish a /tmp/FlashX* file? I used to pause the in-browser and run mplayer on that file si

Re: [dev] browser flash videos and mpeg plugins

2011-02-26 Thread Peter John Hartman
> Newer versions of Flash delete the file immediately, but the file is > still open in memory and you can grab it from there. How? -- sic dicit magister P PhD Candidate Collaborative Programme in Ancient and Medieval Philosophy University of Toronto http://individual.utoronto.ca/peterjh

Re: [dev] fast-booting to text editor

2011-03-20 Thread Peter John Hartman
On Sun, Mar 20, 2011 at 06:21:54PM +, David Tweed wrote: > it. However, my experience is that linux is not particuarly snappy > booting from a hibernate image, partly because there's so many > programs that want to be paged back in and partly because it needs to > still slowly start up any hard

Re: [dev] fast-booting to text editor

2011-03-20 Thread Peter John Hartman
On Sun, Mar 20, 2011 at 07:18:12PM +, David Tweed wrote: > using dwm as wm took 50s. Without starting any other programs and > immediately hibernating, a restart from hibernate image takes 37s to > get to the password unlock screen.(I can get rid of the need for a > password, but I don't imagin

Re: [dev] fast-booting to text editor

2011-03-21 Thread Peter John Hartman
> You're also ridiculous, because you're not hibernating, you're > suspending. Of course suspending to memory will take way less time > than hibernating to disk. fair enough; i've never had a need to suspend to disk rather than ram (nor the capacity, frankly), regardless of what we are calling the

Re: [dev] [surf] arrows

2011-03-25 Thread Peter John Hartman
On Fri, Mar 25, 2011 at 04:19:40PM +0100, Swiatoslaw Gal wrote: > Do the arrows are intend to be useful with surf? > I experience strange behaviour. First hit takes me to the the > top or bottom of the page. Then they allow me to scroll. > Is it a bug or a feature? > > I did try to define bindin

Re: [dev] [surf] arrows

2011-03-25 Thread Peter John Hartman
On Fri, Mar 25, 2011 at 12:28:55PM -0400, Josh Rickmar wrote: > The solution is to turn off spatial navigation. Huh? -- sic dicit magister P PhD Candidate Collaborative Programme in Ancient and Medieval Philosophy University of Toronto http://individual.utoronto.ca/peterjh

Re: [dev] [surf] arrows

2011-03-25 Thread Peter John Hartman
> diff -r 7a931a352cf9 surf.c > --- a/surf.c Thu Sep 09 11:15:02 2010 +0200 > +++ b/surf.c Fri Mar 25 12:36:10 2011 -0400 > @@ -501,7 +501,7 @@ > g_object_set(G_OBJECT(settings), "auto-load-images", loadimage, NULL); > g_object_set(G_OBJECT(settings), "enable-plugins", plugin, NULL);

Re: [dev] [st] 0.1 Feedback - Was: A few small patches

2011-04-04 Thread Peter John Hartman
> > 3. I really like urxvt(1)s urlLauncher functionality. Copy+Pasting > > URLs is a PITA, especially on laptops without a middle mouse button > > for pasting. What do you all think about it? > > Middle-button paste is (unfortunately) effectively brain-damaged for > at least half the hardwar

Re: [dev] [st] 0.1 Feedback - Was: A few small patches

2011-04-04 Thread Peter John Hartman
On Mon, Apr 04, 2011 at 09:02:10AM -0400, Kurt H Maier wrote: > On 4/4/11, Peter John Hartman wrote: > > If you use tmux, you don't need either a urlLauncher function built into > > your xvt nor mouse cut-n-paste built into it. Just use their internal > > buffers, on th

Re: [dev] Panels and Touch support

2011-04-06 Thread Peter John Hartman
On Wed, Apr 06, 2011 at 09:30:31AM +0200, Christoph Lohmann wrote: > The given panel feature could be used by dmenu, to not overlap > the window drawing area, when being run. > I'm using it for having svkbd on a defined position on the screen, > when rotating my Laptop into tablet mode. The needed

[dev] [dwm] NetActiveWindow

2011-04-12 Thread Peter John Hartman
Hi. Thanks go also to LokiChaos on #suckless. With this little patch[1] you can now use this little script[2] (and others presumably) to manipulate windows via xdotool in dwm. The little script conjurs up a list of available windows (via xprop and xdotool), pipes it into dmenu, which then passes

Re: [dev] [dwm] Patch to support WM_TAKE_FOCUS and InputHint

2011-04-12 Thread Peter John Hartman
On Tue, Apr 12, 2011 at 02:45:00PM -0400, Brendan MacDonell wrote: > Hello, > > I recently noticed that some applications were losing the input focus > in dwm, while it was properly maintained under other window managers > (ex. twm.) After some poking around, I discovered that dwm doesn't Nice.

[dev] Re: [dwm] NetActiveWindow

2011-04-13 Thread Peter John Hartman
On Tue, Apr 12, 2011 at 11:08:20AM -0400, Peter John Hartman wrote: > Hi. Thanks go also to LokiChaos on #suckless. With this little patch[1] you > can now use this little script[2] (and others presumably) to manipulate > windows > via xdotool in dwm. As it turns out [1

Re: [dev] [dwm] NetActiveWindow

2011-04-13 Thread Peter John Hartman
On Wed, Apr 13, 2011 at 09:28:19PM +0100, Andreas Amann wrote: > WARNING: This e-mail has been altered by MIMEDefang. Following this > paragraph are indications of the actual changes made. For more > information about your site's MIMEDefang policy, contact > UCC Hostmaster / MIMEDefang Administra

Re: [dev] [dwm] NetActiveWindow

2011-04-14 Thread Peter John Hartman
On Thu, Apr 14, 2011 at 10:37:31AM +0200, Andreas Amann wrote: > Sure, see below. I also paste the new version of the patch which now only > switches on the tags of the selected window. Another option would be to tag > the window with the currently visible tags (see what is commented out in the >

Re: [dev] [dwm] NetActiveWindow

2011-04-17 Thread Peter John Hartman
> It is then also possible to use "winctrl" and similar tools which > depend on _NET_CLIENT_LIST. +1 > > While this works great for me, I assume that most people might not > care about _NET_CLIENT_LIST, and this patch should probably not be > mainline material. Why not? I know that the _NET_ s

Re: [dev] Sandy editor

2011-05-28 Thread Peter John Hartman
On Sat, May 28, 2011 at 03:19:15AM +0200, Rafa Garcia Gallego wrote: > I asked around, found about a couple of very keybind maps using only Control: > > http://www.wordstar.org/wordstar/history/wmvswscmds.htm Go joe! Peter -- sic dicit magister P PhD Candidate Collaborative Programme in Ancie

Re: [dev] [st] Font issues

2011-05-31 Thread Peter John Hartman
> - the lack of a scrollback buffer, already mentioned > - double-click-and-drag selection, like xterm has > (st currently supports double-click word selection; implementing this > should be no big deal... I might look at it) > - vim in st with Solarized [1] colorscheme draw

Re: [dev] 2surf, an experiment in tiled browsing

2011-06-11 Thread Peter John Hartman
On Sat, Jun 11, 2011 at 07:34:06PM +0200, Christian Neukirchen wrote: > Hey, > > I have been thinking about a Xanadu-style web browser (e.g. > http://xanadu.com.au/ted/XUsurvey/pingshot.gif) where you have two > panes, and each link opens in the other pane; this is especially nice > instead of the

Re: [dev] Experimental editor

2011-06-15 Thread Peter John Hartman
> Still I wonder why you try so much to stay modeless. Modes are a real > advantage because each mode offers a separate editor. Take vi: You can > edit in normal mode (= the actual vi mode) or in ex mode or in insert > mode (e.g. with ^W, ^U). You have the choice which editor (mode) you > use for s

Re: [dev] Experimental editor

2011-06-15 Thread Peter John Hartman
> > A simple editor probably shouldn't have any more keybindings than, say, > > surf; in fact one or two less: page up/down, up/right/left/down, and find. > > One doesn't need modes for that.  If you want to do something wacked out to > > your file (like go to the third word on the 4th sentence and

Re: [dev] Experimental editor

2011-06-15 Thread Peter John Hartman
On Wed, Jun 15, 2011 at 05:03:23PM -0400, Kurt H Maier wrote: > On Wed, Jun 15, 2011 at 4:24 PM, Andrew Hills wrote: > > That keyboard also doesn't have Ctrl... and I'm guessing no one here > > will bother porting the editor to an Android app. > > Nokia n900/n810 have no pgdn or pgup, but do have

Re: [dev] Experimental editor

2011-06-16 Thread Peter John Hartman
On Thu, Jun 16, 2011 at 02:18:01PM +0100, David Tweed wrote: > On Thu, Jun 16, 2011 at 1:49 PM, Kurt H Maier wrote: > > On Thu, Jun 16, 2011 at 4:15 AM, David Tweed wrote: > >> I'm going to assume that what you mean by "The editor doesn't need to > >> do this." is "the computer user doesn't benef

Re: [dev] Downloading files via surf

2011-06-22 Thread Peter John Hartman
its on the website. peter On Wed, Jun 22, 2011 at 07:35:08PM -0700, dwindle nil wrote: > I am a bit confused. Surf uses wget to download files, I read, but I > can't find where the files are saved. I wonder if there's a patch that > implements a simple download manager as well? > -- sic dici

Re: [dev] surf: paste from primary buffer (aka middle-click paste?)

2011-06-29 Thread Peter John Hartman
On Wed, Jun 29, 2011 at 06:26:01PM +0100, Nick wrote: > Quoth dwindle nil: > > I find this functionality lacking, and although it's no deal-breaker, it > > is annoying. Any patches or ideas? Check out clipboard() in surf.c. You may notice the enticing GDK_SELECTION_ sitting there. Peter -- s

Re: [dev] DWM + Emacs key binding

2011-07-04 Thread Peter John Hartman
> Is there anyone who can consult me on changing DWM key-binding to suit > with Emacs. Sorry for my request, I use Emacs key-binding frequently so > changing DWM key-binding is my preferable. config.h -p -- sic dicit magister P PhD Candidate Collaborative Programme in Ancient and Medieval P

[dev] [dwm] [bug] 5.9's first bug: magic float mode

2011-07-10 Thread Peter John Hartman
Hi, Actually, this bug goes way back, but I thought I'd be the first to report it, just to ruin dwm's birthday. The culprit is this chunk of code in manage(): if(c->w == c->mon->mw && c->h == c->mon->mh) { // c->isfloating = True; pjh c->x = c->mon->mx;

Re: [dev] dmenu-4.4

2011-07-20 Thread Peter John Hartman
Why not just have a quick once-over of the code? There's a reason suckless apps aim to be under a certain SLOC limit, and I take it that one of these is so that one can have a quick once-over of the code. And if the distro maintainer can't do this, so much the worse for the distrubition. Peter

Re: [dev] [dwm] [bug] 5.9's first bug: magic float mode

2011-07-20 Thread Peter John Hartman
> I can reproduce that fullscreen flash requires this. Flash creates a > new window with "" title and class and sets the > _NET_WM_FULLSCREEN property. Maybe as a solution it makes sense to > check for _NET_WM_FULLSCREEN property in manage() and set > c->isfullscreen (and modify some layout functio

[dev] [surf] segfault

2011-08-03 Thread Peter John Hartman
Hey, surf has been segfaulting about 6 seconds after loading, no matter what site. Finally managed to compile webkit-gtk with -ggdb turned on. Here's the bt: Program terminated with signal 11, Segmentation fault. #0 hash (this=0xb3433d80) at ./WebCore/platform/text/StringImpl.h:171 171 ./W

Re: [dev] Re: [lsw] List only visible windows

2011-08-28 Thread Peter John Hartman
On Sun, Aug 28, 2011 at 03:10:41PM +0100, Rob wrote: > On 28 August 2011 14:49, Christian Neukirchen wrote: > > My private fork of lsw also features a check for the urgency hint, which i also have a minor patch to lsw.c to show the class. despite its size, it might be worth placing such patches

Re: [dev] slmenu - dmenu spinoff for the console

2011-09-01 Thread Peter John Hartman
On Wed, Aug 31, 2011 at 02:09:50PM +0200, Rafa Garcia Gallego wrote: > Hi, > > I sometimes use sandy in a SSH session, so I wrote some code around > dmenu to have it work in the console. The resulting program takes > input from stdin, reopens the tty, prints the UI to stderr, gets your > input (ag

[dev] [surf] tablet-mode

2011-09-08 Thread Peter John Hartman
Hi everyone, I recently played with okular, a PDF-reader, and they do one thing Right, namely, the default mode is what they call Browse mode wherein by dragging the mouse (or your finger across the screen) it navigates around on the pdf page. You can, if you want, click a little icon to go into

Re: [dev] [surf] tablet-mode

2011-09-08 Thread Peter John Hartman
On Thu, Sep 08, 2011 at 01:30:20PM -0400, Bryan Bennett wrote: > I'd be all for this, provided that the method for entering / leaving > 'select' mode was easily accessible via a touch/click. It'd be silly > to require a keybind to toggle between the two. > Plausibly, the method could be a keystro

Re: [dev] A dmenu that includes all additional features

2011-09-08 Thread Peter John Hartman
On Thu, Sep 08, 2011 at 09:00:31PM +0200, Dieter Plaetinck wrote: > Hi, > in an attempt to get a dmenu that includes all features I want, I've been > trying to combine patches from various sources to various versions of dmenu. > This has proven to be a pain, as patches conflict with each other (or

Re: [dev] A dmenu that includes all additional features

2011-09-12 Thread Peter John Hartman
> > > How do people feel about tok in mainline? Might be worth discussing. I also like it. It is useful for filenames: zathura $(find *.pdf | dmenu -t) Peter -- sic dicit magister P University of Toronto / Fordham University Collins Hall B06; Office Hours TF10-12 http://individual.utoronto.ca/

[dev] onscreen keyboards & dwm (updated patch)

2020-03-06 Thread Peter John Hartman
Hello Comrades, Many years ago (2011 or so) I did some stuff to get svkbd to work with dwm on a tablet. I didn't have a tablet for a long time and now I do again. Here's an updated version of the patch to work against current head of dwm. Comments are welcome --- things work, but I feel I mi

Re: [dev] [surf] download patch updated

2011-09-29 Thread Peter John Hartman
On Wed, Sep 28, 2011 at 02:51:10PM +0100, Nick wrote: > Quoth Troels Henriksen: > > Nick writes: > > > > > Howdy, > > > > > > I recently got around to updating the patch posted to the list in > > > July last year by Carlos, which builds downloading into surf rather > > > than relying on e.g. wg

[dev] Re: vertical patch (prototype)

2011-10-01 Thread Peter John Hartman
542,7 +601,7 @@ puts("slmenu, © 2011 slmenu engineers, see LICENSE for details"); exit(EXIT_SUCCESS); } - else if(!strcmp(argv[i], "-i")) + else if(!strcmp(argv[i], "-i"))

Re: [dev] [dmenu] composite key not working

2011-10-16 Thread Peter John Hartman
On Sun, Oct 16, 2011 at 01:45:51PM +0200, Troels Henriksen wrote: > Swiatoslaw Gal writes: > > > What may I do to enable composite key (defined with setxkbmap > > as compose:rctrl) with dmenu? It works with st, though. > > You can't. dmenu does not implement the X11 input context protocol. It

Re: [dev] [dwm] adding docking support

2011-10-16 Thread Peter John Hartman
On Sun, Oct 16, 2011 at 12:13:03PM -0400, Kurt H Maier wrote: > On Sun, Oct 16, 2011 at 11:54 AM, Anselm R Garbe wrote: > > Do we really agree that touch interfaces do suck less? I think there's a category error or something here. Touch interfaces, indeed, entire touch-driven devices exist. Suc

Re: [dev] [dwm] adding docking support

2011-10-17 Thread Peter John Hartman
> That's not exactly what I'd describe as an application launcher, but I > still don't understand what you're complaining about. If you want to > change dwm's status bar, customise your buttons[]. (And a clock? > That's just the root window title.) > > I'm really not convinced a generic status bar

Re: [dev] st features that'd be nice

2011-10-18 Thread Peter John Hartman
On Tue, Oct 18, 2011 at 11:01:07AM +0100, Nick wrote: > I just read about terminator > , and thought a > couple of its features sounded worth stealing (both require > scrollback to be implemented): > > * Logging - logs of terminal sessions can be saved. It

[dev] st is slow in this particular case

2011-10-20 Thread Peter John Hartman
Hi, >From what I can gather, there's a bit of confusion on whether st has performance issues or not. Here's a clear case where it is slow on my box: split a tmux window into two panes. On the LHS edit a latex doc with joe. On the RHS compile that latex doc with pdf2latex. I think it is the

Re: [dev] st is slow in this particular case

2011-10-20 Thread Peter John Hartman
On Thu, Oct 20, 2011 at 05:40:02PM -0400, Invalid Argument wrote: > This isn't so much a St issue as it is a Tmux one: It happens regardless > whether I use St or Urxvt. Maybe the Tmux lists will have better info > for you since this isn't (as far as I've seen) an St issue. It absolutely does not

Re: [dev] [st] Drawing optimizations

2011-10-20 Thread Peter John Hartman
> tip now uses a simple dirty flag per line algorithm. FWIW: this makes it worse in my particular test case (split-screen mutt; RHS compiling something; LHS editing a file in joe). Best, Peter -- sic dicit magister P University of Toronto / Fordham University Collins Hall B06; Office Hours TF1

  1   2   >