Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Rob
r forward declare them. gcc can help you here - compile with -Wall and -Wextra :) Perhaps see how using the bell character works for you. You could even do it with a shell script: ... | grep 'your-regex' | while read line; do printf '\x7'; done Cheers, Rob

Re: [dev] network protocol packing

2014-06-30 Thread Rob
message packing I've seen, but do you know a way to make it suck even less? Seems pretty straightforward otherwise :) Cheers, Rob

Re: [dev] [RFC] Design of a vim like text editor

2014-09-25 Thread Rob
;s no J, only J). I do this all the time. You might find this useful - I think J makes more sense working as an operator, once you get used to it. " fix J to be an operator command func! Joinoperator(submode) norm $mj '[,']join norm 'jl endfunc nnoremap J :silent set operatorfunc=3DJoinoperatorg@ Cheers, Rob

[dev] [slock] partial screen unmask after rotate and monitor video cable reconnect

2019-07-08 Thread Rob
still locked, but the right side of the screen (when horizontal, the "bottom" if rotated) is unmasked. The unmasked content appears to be live, as my clock was updating. The "mask" seems to become un-rotated when the monitor is being re-initialized. Rob

Re: [dev] How to get windows opened on one tag?

2011-09-20 Thread Rob
onstantly output the current client list to a file, you'll have to use alarm(3), threads or something similar. Rob void list_cur_tag(const Arg *arg) { Client *c; FILE *f; if(!arg || !arg->v || !selmon) return; f = fopen(arg->v, "w"); if(!f){ fprintf(stderr, "open

Re: [dev] Missing hg repo after move?

2011-09-29 Thread Rob
On 29 September 2011 20:08, Jeremy Jackins wrote: >    hg clone http://hg.suckless.org/sandy > gives >    abort: HTTP Error 500: Internal Server Error Secret coup against Sandy

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

2011-10-01 Thread Rob
On 1 October 2011 19:55, Kiriakos at Kindstudios wrote: > I'm using many aliases in my terminal sessions and want to be able to use > them with dmenu Just a guess - in dmenu_run, source the file that defines your aliases, before doing anything else. Rob

Re: [dev] hidcur: Utility for hiding the mouse cursor in X11

2011-10-04 Thread Rob
it in tomorrow if I get some time. Thanks, Rob.

Re: [dev] hidcur: Utility for hiding the mouse cursor in X11

2011-10-05 Thread Rob
On 5 October 2011 09:54, Bastien Dejean wrote: > Rob a écrit : > >> I find unclutter sometimes locks my focus to a window, I try to shift focus >> (dwm), it just jumps back. > > You probably need to launch unclutter with the -noevents option. That's fixed it, thank you very much! Rob

Re: [dev] Introducing SEE, the Simple Executing Engine

2011-10-22 Thread Rob
compile time check similar to what dwm uses, in this case, it checks if gc_header_s is the same size as GC_HEADER_SPACE. Rob

Re: [dev] Focusing on windows by name

2011-10-26 Thread Rob
On 26 October 2011 14:51, Peter John Hartman wrote: > I do something similar: > > if [[ $foo != "" ]]; then [ -n "$foo" ] if you're going for POSIX.

Re: [dev] [dwm] ncol layout

2011-10-30 Thread Rob
column to be more or less even, and then a couple of buddy-list windows squashed to the side. I only adjust if I have many chat windows and the tile method starts putting them into the slave-column, so I can to push them back into the master column. tl;dr: I mainly stick to tile. Rob

Re: [dev] Re: [dwm] A general approach to master-slave layouts

2011-10-31 Thread Rob
I'm hoping to try out your patch(es) at some point this week, and hoping to mess around with the key bindings, I assume you can change the master layout while keeping the slave one the same with a binding, right? Cheers, Rob

Re: [dev] [surf] downloads

2011-11-05 Thread Rob
curl fail on this. Anyway, time for a shameless self-plug. http://github.com/jeffwar/wgetlite Handles it fine. The only thing it's lacking is HTTPS support at the moment. Rob

Re: [dev] xv6

2011-11-09 Thread Rob
reading this. Rob

Re: [dev] Start dwm on different tag selection

2011-11-13 Thread Rob
7;m pretty sure it'll work. Obviously TAG_INIT wants to be your starting tag mask. Rob diff -r ee36ffbd4252 dwm.c --- a/dwm.c Sun Nov 06 20:36:23 2011 +0100 +++ b/dwm.c Sun Nov 13 18:34:07 2011 + @@ -647,7 +647,7 @@ if(!(m = (Monitor *)calloc(1, sizeof(Monitor die("fatal

Re: [dev] semicolons

2011-11-18 Thread Rob
On 18 November 2011 11:41, Roger wrote: > Anything can be worked around one way or another.  For reference, standard > benchmark tools also never look at just "one thing". Exactly, short of writing a C-parser and doing some heuristic on the syntax tree, you'll just end up missing things anyway.

Re: [dev] semicolons

2011-11-18 Thread Rob
On 18 November 2011 12:24, pancake wrote: > should we support code written by bitches? main(argc, argv) int argc; char **argv; { } // SLOC of two, should be zero #define SEMI ; int main(int argc, char **argv) { int i SEMI for(i = 0 SEMI i < argc SEMI i++) printf("argv[%d] = %s\n", i

Re: [dev] [dmenu] Keyboard Bindings

2011-11-21 Thread Rob
a word, or Shift+Home, Backspace to delete a line. Unix has C-W and C-U, it's just muscle memory. Rob.

Re: [dev] [slock] segfault

2011-12-04 Thread Rob
e -s with -g in config.mk) Rob

Re: [dev] sbase ls patch

2011-12-22 Thread Rob
On 22 December 2011 23:10, Bjartur Thorlacius wrote: >> Tiny cleanup patch.  Now more memory is allocated than necessary. > > Is that a good thing or a typo? Looking at the code, it appears to be a typo, now the exact amount of memory is allocated Rob

Re: [dev] dmenu-4.5

2012-01-11 Thread Rob
e used select() until we got input on stdin, then just read all of stdin at once, not bothering to select() again? Unless you're reading over a network, I don't think there's that much of a delay. Cheers, Rob

Re: [dev] [dwm] Tags vs Monitors

2012-01-12 Thread Rob
s you can somehow clone the window or something (I'm not very clued up on X11). Rob

Re: [dev] [dwm] Tags vs Monitors

2012-01-13 Thread Rob
nd of the stick, I thought you meant a tagset which was shared between each monitor or something, thanks for clearing that up. Personally I prefer the way it's set up at the moment, but I'd be interested in seeing any patches anyway. Cheers, Rob

Re: [dev] [dwm] Tags vs Monitors

2012-01-13 Thread Rob
fact, if combined with a patch that would keep the set of visible > tags on both screens in sync, I think it would be exactly what I want. Does > anyone know how to achieve the latter? Check /(toggle)?(view|tag)/ functions in dwm.c Or you could change arrange() so it sets the tagset for all other monitors too Rob

Re: [dev] [slock] kill slock with Ctrl+Alt+Multiply

2012-01-20 Thread Rob
On Fri, Jan 20, 2012 at 07:01:22PM +, Bjartur Thorlacius wrote: > Does this actually go out and send a SIGTERM to the PID of the owner > of the window, or merely destroy the window? Surely it just destroys the window, you can't get a PID for any X window, since it could be a networked one

Re: [dev] skype gui interface

2012-02-01 Thread Rob
On Wed, Feb 01, 2012 at 09:58:14PM +0400, Nikolay G. Petrov wrote: > Can you tell me why if I start skype, gui interface is absent, not > apear, but a skype process persist? dwm doesn't have a systray, which skype minimises itself to regardless. Try stalonetray or trayer.

Re: [dev] sbase TODO patch

2012-02-09 Thread Rob
can't find the environment variable. Thanks, Rob #include #include #include #include "util.h" int main(int argc, char **argv) { char *print_me; if(argc < 2){ print_me = "y"; }else{ char *arg, *p; int i, len = 1; for(i = 1; i < argc; i++) len +=

Re: [dev] sbase TODO patch

2012-02-09 Thread Rob
ck performance tests to be sure, though. What's more, that version prints "a\nb\n" for ./yes a b, instead of "a b\n". Forgot completely about puts() though. Rob

Re: [dev] stest review

2012-02-11 Thread Rob
> the sourcecode for finding out how arguments are handled. What Anselm is on about, is that it prevents the programmer from adding more and more flags, keeping the complexity low, not from having a different style for each application. Rob

Re: [dev] slock-1.0

2012-02-11 Thread Rob
On Sat, Feb 11, 2012 at 01:50:38PM -0500, Joseph Iacobucci wrote: > On 02/11/2012 05:03 AM, Anselm R Garbe wrote: > > It does not contain other potential features that were requested > > during the years, like displaying some text in case the user hits his > > keyboard. Such features will be subjec

Re: [dev] [st] htop, tmux, terminfo

2012-02-11 Thread Rob
st, terminfo of st and ssh to lots of various servers? > > [1] http://martin.kopta.eu/trash/st-htop.png for s in $(grep '^Host' .ssh/config | awk '{print $2}') do ssh $s tic - < path/to/st.info done or whatever to get tic to read stdin Thanks, Rob [1] http://lists.suckless.org/dev/1104/7444.html

Re: [dev] [st] htop, tmux, terminfo

2012-02-12 Thread Rob
rams I use work fine in st, except htop, and I just have a script run (attached), which alter's htop's config so when it's running in st it'll use black and white mode. Although I wrote my own process monitor (http://github.com/jeffwar/utop) with vi key bindings, since I foun

Re: [dev] [st] htop, tmux, terminfo

2012-02-12 Thread Rob
On Sun, Feb 12, 2012 at 05:14:22PM +0100, Martin Kopta wrote: > On 02/12/2012 04:26 PM, Rob wrote: > >All the programs I use work fine in st, except htop, .. > > I am glad to hear that. I use urxvt as my main terminal though, but as far as I'm aware, anyway. > >Altho

Re: [dev] ... and then i go and spoil it all by saying something stupid ...

2012-02-15 Thread Rob
On 15 February 2012 07:34, hiro <23h...@googlemail.com> wrote: > Fuck off. > (It's the same I told my gf btw) Ha! That's a good one, people on suckless having girlfriends...

Re: [dev] Moveresize patch page defaced

2012-02-22 Thread Rob
from my point of view. > Adding 60 SLOC with no real benefits is not ok, from my point of view. That's why it's a patch and not in tip > But yes, I understand someone may like to moving X clients around > between monitors just for funny. You've got to have some sense of humour when using dwm/this mailing list Rob

Re: [dev] Moveresize patch page defaced

2012-02-22 Thread Rob
On Wed, Feb 22, 2012 at 03:19:28PM +0100, clamiax wrote: > That's most likely due to your wrong workflow, which includes moving X > clients between monitors. I'm not complain about multi-head setup, I'm > just telling you that moving windows between monitor without any kind > of criteria is a flaw

Re: [dev] slock && fullscreen

2012-04-25 Thread Rob
On 25 April 2012 08:16, hiro <23h...@googlemail.com> wrote: > This is about the lamest usecase for slock I've ever heard of. > Next people will complain locking the toilet door with it didn't work > and someone saw their junk. Prepare to get a lawyer Amselm. I frequently use slock on my bog door,

Re: [dev] dwm: XKeycodeToKeysym deprecated patch

2012-05-16 Thread Rob
On 16 May 2012 02:58, Kurt H Maier wrote: > On Tue, May 15, 2012 at 09:52:10PM -0400, James Turner wrote: >> >> XKBlib.h has been around since 1993 is an extra header file really that >> bad? > > Are you arguing that it's good code because it's old code? You were arguing that it's bad because it'

Re: [dev] [ii] exposed password on process monitoring

2012-06-15 Thread Rob
st in curl-7.26.0). I'm pretty sure that > writable argv is guaranteed by C89, although that doesn't really mean > anything in practice... but it works on Linux. You can't depend on this - what if another user's process snapshots ii's argv array before ii overwrites it? Rob

Re: [dev] [st] extra arguments to xcopy()

2012-09-05 Thread Rob
tached patch removes the arguments (no functional changes). I hope > the current behavior is correct. > > --Andrew Hills Might be worth winging this in while you're at it. Rob diff -r c84141b8303e st.c --- a/st.c Wed Sep 05 01:32:42 2012 +0200 +++ b/st.c Wed Sep 05 19:20:24 2012 +0100 @

Re: [dev] Migration to git

2012-11-29 Thread Rob
reate a local branch with my patches applied and I will hack > through its history. > > What are you guys suggesting/using? I imagine you can keep your own local branch, and rebase it upon suckless' master branch, when it changes. Cheers, Rob

Re: [dev] My dwmstatusbar.c

2013-01-07 Thread Rob
writing to the list - anyone got any smart ideas about this? Cheers, Rob

Re: [dev] My dwmstatusbar.c

2013-01-08 Thread Rob
Thanks for the good suggestions - I'll have a pop at the daemon and see how it goes. Cheers, Rob

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Rob
7 pts/6S 0:00 sleep 60 $ tr '\0' '\n' < /proc/$pid/environ | grep PASS PASS=hello Of course, the "attacker" would need read permission on /proc/$pid, which is normally 600. Rob

Re: [dev] dwm switches view on _NET_ACTIVE_WINDOW

2013-03-04 Thread Rob
I completely removed that behaviour, I hate focus stealing. Not a bad idea you've had there though. Cheers, Rob On 4 March 2013 10:36, Markus Teich wrote: > Hi, > > a month ago i started using dwm. > In my rules i send firefox clients to tag 2. > Now, after starting d

Re: [dev] [st] Segmentation fault when clicking the top of window

2013-03-24 Thread Rob
ull" or maybe upload the core dump? Rob

Re: [dev] ii IPv6 support

2013-04-12 Thread Rob
ely merge to called > 'patched' that I use for building. There's no reason to keep patches > as patch files in git. In that case, you might find stacked git (stg) useful [1]. I use it to keep patches on top of origin/master and apply certains ones depending on which machine I'm on. Rob [1]: http://www.procode.org/stgit/

Re: [dev] [sbase] 64-bit type for split

2013-06-11 Thread Rob
Interesting mix of top- and bottom-posting. I'll not disturb it. Anyway, 1999 was 14 years ago. I think uint64_t is the least of our worries if we're porting to some exotic architecture where gcc can't at least emulate a 64-bit integer. I mean even tcc has a runtime library for that. On Tue, Jun

[dev] [st] [patch] Fixed lock up when system time jumps back

2013-06-19 Thread Rob
It seems st enters a heavy draw cycle when system time is moved back (e.g. ntp). This patch should fix it. Cheers, Rob 0001-Fixed-lock-up-when-system-time-jumps-backwards.patch Description: Binary data

Re: [dev] [st] [patch] Fixed lock up when system time jumps back

2013-06-22 Thread Rob
On Thu, Jun 20, 2013 at 11:41:02PM +0200, Silvan Jegen wrote: > On Wed, Jun 19, 2013 at 09:26:13PM +0100, Rob wrote: > > It seems st enters a heavy draw cycle when system time is moved back > > (e.g. ntp). > > This patch should fix it. > > I had the same problem and thi

Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

2013-10-05 Thread Rob
sortorder * (b->mtime - a->mtime); - else - return sortorder * strcmp(a->name, b->name); + return sortorder * (tflag ? b->mtime - a->mtime : strcmp(a->name, b->name)); } void With line wrapping as appropriate. Thanks, Rob

Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

2013-10-06 Thread Rob
On Sat, Oct 05, 2013 at 03:47:05PM +0400, Alexander S. wrote: > 2013/10/5 Rob : > > On Fri, Oct 04, 2013 at 05:45:56PM +0400, Alexander S. wrote: > > I disagree - rather than adding a sort call and changing the program's > > runtime complexity, can't we just r

[dev] rohrpost [was: Tabbed status?]

2013-10-10 Thread Rob
the diffs. They are all in the last patch. I will have to write some > rpgit utility. This looks great - I've been waiting for rohrpost to be published, I'm getting tired of everything locked in mutt's UI and would love to see it, regardless of how complete it is. You never know, others might help finish the job. Rob

Re: [dev] music db editor

2013-10-12 Thread Rob
* files that seemed to be missing key tags like track number, artist, > album > > It would print the filename, the artist and the album, tab-delimited, so > it was easy to then script moving the offending files into the right > place with cut, xargs, awk, etc. Still got that script lying around? Rob

Re: [dev] [st] Changing system clock backwards disables st

2013-10-27 Thread Rob
problem at all to just open another terminal.) Yeah I posted a simple fix to this ages ago [1] but it never went upstream. Rob 1: http://lists.suckless.org/dev/1306/16039.html

Re: [dev] Re: [st] System freeze when killing X after using st-git

2013-11-30 Thread Rob
's X11 configure and make flags. Rob

[dev] [sbase] id commits

2013-12-01 Thread Rob
t be worth the hassle. Patch is attached anyway. Cheers, RobFrom fad6b54c1c84031291b76644aa9d944ec1dcd091 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sun, 1 Dec 2013 11:40:49 + Subject: [PATCH 2/2] id(1) can handle uid arguments --- id.1 |6 +++--- i

Re: [dev] New utility "when"

2013-12-11 Thread Rob
mp; xmessage connected [ssh-machine %] ... `xmessage connected' will be executed even though ssh hasn't exit(0)'d yet. Rob

Re: [dev] New utility "when"

2013-12-11 Thread Rob
On Thu, 12 Dec 2013, Fernando C.V. wrote: On Wed, Dec 11, 2013 at 10:36 PM, Rob wrote: [local-machine %] ssh user@host & && xmessage connected [ssh-machine %] ... `xmessage connected' will be executed even though ssh hasn't exit(0)'d yet. bash: syntax error near

Re: [dev] [sbase] printf(1)

2013-12-19 Thread Rob
er did this: printf '%f\n' 2 If you "throw it into the standard library's printf", even forgetting about how we do that, you'd still interpret 2 as an int, when printf expects a float. And that's only the beginning, what about %n, or not passing enough arguments? Rob

[dev] [st][patch] externalpipe()

2013-12-20 Thread Rob
10 | xargs open" } }, }; Where xurls[1] is a script that pulls out urls from the text, then I can pick one in dmenu and open[2] it in a browser. If this doesn't qualify as core-st I'll happily stick it on the patches page. Feedback welcome. Rob 1: https://raw.github.com/bobrippling

[dev][announce] Optimizing C compiler & c++ compiler/runtime

2013-12-20 Thread Rob
p. I'm currently held back by a bug in the preprocessor when handling glibc/Debian's unistd.h and it also looks like I'll need to support GNU's transparent union extension too. If anyone's interested. It's hosted here [1] and I'm all ears to critiques and feedback. Thanks, Rob 1: https://github.com/bobrippling/ucc-c-compiler

Re: [dev] [st][patch] externalpipe()

2013-12-20 Thread Rob
Alexander Huemer wrote: On Fri, Dec 20, 2013 at 08:21:34PM +0100, Alexander Huemer wrote: Hi Rob! On Fri, Dec 20, 2013 at 01:56:15PM +, Rob wrote: Attached is a patch which gives st the ability to spit out its current screen text to another program. IMHO it makes sense here to use

Re: [dev] [st][patch] externalpipe()

2013-12-20 Thread Rob
koneu wrote: Rob wrote: Yeah, based it off url-select, love that feature. urxvt takes 8 seconds or so to open on my laptop, so necessity is the mother of invention and all that. Configure with --disable-everything and use urxvtd. Faster (and more stable) than st for me. Wow, it is pretty

Re: [dev][announce] Optimizing C compiler & c++ compiler/runtime

2013-12-21 Thread Rob
Strake wrote: On 20/12/2013, Rob wrote: https://github.com/bobrippling/ucc-c-compiler Why are you rewriting libc? I think calling it a libc rewrite does it too much justice. When I started out I needed something I could statically link against that would be simple to debug, and had

Re: [dev] [dmenu] A clickable dmenu is a dream?

2010-03-28 Thread Rob Manea
c.php?id=45364 Here you can see one possible way to make it look and act: http://dzen.geekmode.org/dwiki/lib/exe/fetch.php?cache=cache&media=dzen:dzen_menu_shot.png HTH, Rob.

Re: [dev] [surf] patch : toggle, horiz scroll, togglestyle

2010-05-20 Thread Rob Greer
On Thu, May 20, 2010 at 04:12, wrote: > - scroll uses a heuristic in passing integer parameter borrowed from > meillo, I guess, and extended to scroll a page up/down or to the > begin/end of document. Scrolling vertically and horizontally differs > just in the GtkAdjustment used. So I've put

[dev] [surf] site-specific css?

2010-07-24 Thread Rob Mason
Hi, I'm wondering how to have custom css for a specific site, specifically like the css here: http://userstyles.org/styles/31211 I can get it to work by putting the code into my ~/.surf/style.css file, but it applies the style to all webpages, and I only want it to apply to a certain domain. Is thi

Re: [dev] [surf] site-specific css?

2010-07-24 Thread Rob Mason
Hmmm, perhaps I should be asking this question elsewhere then. Thank you. On Sat, Jul 24, 2010 at 12:27 PM, Szabolcs Nagy wrote: > * Rob Mason [2010-07-24 11:14:36 -0400]: > > > Hi, I'm wondering how to have custom css for a specific site, > specifically > &g

<    1   2