[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] [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

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] [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] [st] [patch] misplaced parenthesis in LEN macro

2014-04-23 Thread Rob
Martti Kühne, 22 April 2014 : > On Sun, Apr 20, 2014 at 9:24 PM, Rob wrote: >> Into the bikeshed I go... >> >> LEN(a + 2) doesn't mean anything anyway, as a's type decays. >> >> To do it properly there should be some kind of static assert in the >&

Re: [dev] [st] [patch] misplaced parenthesis in LEN macro

2014-04-20 Thread Rob
ase and you'd expect that the code would be run and checked before committing, which renders the assert pretty useless. I think it's fine as it is, in the original C way of doing things, garbage in, garbage out, undefined behaviour etc etc. Rob

Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-09 Thread Rob
whether you'll use shell features or not. If not, you can go with how dwm does it, and pass (char *[]){ "xterm", "-e", "mail", NULL } to execvp. Regarding EXIT_SUCCESS, I think this is perhaps a bit picky, 0 is perfectly fine and besides, every non-trivial shell script hard codes stdout and stderr: 2>&1. Rob

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] [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] [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

[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

[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

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

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] 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

[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] Re: [st] System freeze when killing X after using st-git

2013-11-30 Thread Rob
's X11 configure and make flags. 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] 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

[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] [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

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] [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

[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] [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

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] [st] Segmentation fault when clicking the top of window

2013-03-24 Thread Rob
ull" or maybe upload the core dump? 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] 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] 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] My dwmstatusbar.c

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

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] [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] [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] 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] 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] 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] 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] ... 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] [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] [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-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] 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] 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] 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] 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] 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] [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] [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] [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-12 Thread Rob
s you can somehow clone the window or something (I'm not very clued up on X11). 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] 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] [slock] segfault

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

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] 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] 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] 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] xv6

2011-11-09 Thread Rob
reading this. 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] 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] [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] 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] 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] 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] 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] 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] 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] 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] A dmenu that includes all additional features

2011-09-12 Thread Rob
less tools are supposed to be lightweight, even someone who hasn't seen the code before can make changes, they don't have to be an expert at C, so merging a few lines here and there is no big deal. Rob

[dev] suckless wget

2011-09-11 Thread Rob
opinions/patches on it anyway. Thanks, Rob. [1]: http://www.github.com/jeffwar/wgetlite

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

2011-08-28 Thread Rob
en.org How do you set the tag(s) urgency hint for new Skype messages? I noticed one can get Skype to run a script on a new message, but I wasn't sure what to do after that. Rob

Re: [dev] [dwm] Fullscreen Layout

2011-08-14 Thread Rob
On 14 August 2011 21:03, Bastien Dejean wrote: > Hi, Hello > Any idea on how to implement a fullscreen layout? Mod + b, Mod + m

Re: [dev] [dwm] [patch] USPosition, USSize

2011-08-09 Thread Rob
Since there's a few opinions on this, how about we make a dwm "focus" page? The NetActiveWindow hint is not one of the better ideas in the history of X11, it really got my goat when windows started stealing focus while I'm trying to type elsewhere. Rob focus.md Description: Binary data

Re: [dev] [wmii] Flash in fullscreen regularly freezes screen

2011-08-06 Thread Rob
On 6 August 2011 11:09, Ethan Grammatikidis wrote: > On Sat, 6 Aug 2011 09:19:24 +0100 > Rob wrote: >> Somewhat off topic now, but http://repo.hu/projects/yget/ works fine for me > > Shell script and an order of magnitude smaller than youtube-dl which > I've been

Re: [dev] [wmii] Flash in fullscreen regularly freezes screen

2011-08-06 Thread Rob
On 5 August 2011 17:39, Kris Maglione wrote: > On Fri, Aug 05, 2011 at 09:31:40AM -0700, Suraj Kurapati wrote: >> # see http://www.reddit.com/r/linux/comments/dky73/ >> lsof -p $(pgrep -f libflashplayer) | grep /tmp/Flash | >> awk '{print "/proc/" $2 "/fd/" $4}' | sed 's/[rwu]$//' | >> xargs mplay

Re: [dev] [surf] segfault

2011-08-03 Thread Rob
Hi On 3 August 2011 22:34, Peter John Hartman wrote: > Hey, > > surf has been segfaulting about 6 seconds after loading, no matter what > site. > > ... > > Suggestions? > > Peter Surf has more or less been abandoned, you're on your own, in the forest of Webkit. Good luck. Rob

Re: [dev] [dwm] visible only if needed [patch]

2011-07-07 Thread Rob
On 7 July 2011 14:18, Ruben Gonzalez Arnau wrote: > Talking about remember applications when restarting, it's possible to > remember "terminals" too? When I restart dwm everything is okey with my > config.h rules and each app goes to its tag, except all xterms go to tag 1, > I think that is the no

Re: [dev] [dwm] sloppy focus

2011-07-04 Thread Rob
weaking program to implement this. Maybe I'm just not using dwm properly, because the main time I use this focusing is when I have floating windows, so make what you will of that. Rob

Re: [dev] [dwm] segfault

2011-06-22 Thread Rob
Build with debug flags (-g in Makefile) Enable coredumps in your .xinitrc ulimit -c unlimited Wait until dwm segfaults $ gdb --core=path/to/core dwm > bt Voila, you've got the bug's location.

Re: [dev] Microsoft considers harmful...

2011-06-17 Thread Rob
Honestly, I think they have a point. Sure, they don't have a leg to stand on in this area, but look at Flash. All that allows is interaction with the mouse and keyboard + video and sound playback, but not a week goes by without yet another exploit being uncovered in it. That could just be because t

Re: [dev] Experimental editor

2011-06-17 Thread Rob
On Fri, Jun 17, 2011 at 07:15:22AM -0800, Andrew Hills wrote: > On Fri, Jun 17, 2011 at 6:29 AM, Nick wrote: > > But if we're thinking about > > breaking from the terminal, how would remote editing work? > > Some sort of ssh piping from / to the file on the server? > > I haven't thought this throu

Re: [dev] Re: sbase

2011-06-16 Thread Rob
On 16 June 2011 02:18, Connor Lane Smith wrote: > An update: I've done this, and added it to the Makefile. It's a little > simpler than doing it by concatenating all the sources, since we don't > need to worry about statics or anything. Currently sbase-box comes out > at 69K statically linked agai

Re: [dev] Experimental editor

2011-06-10 Thread Rob
On 10 June 2011 08:54, Rafa Garcia Gallego wrote: > The lack of Shift+Control modifier is a serious bummer indeed. It looks like it's been decided that X is the way to go, but before any code is implemented, I thought I'd just stick my oar in - what if we were to keep to the terminal and open a c

Re: [dev] Re: sbase

2011-06-10 Thread Rob
On 10 June 2011 06:55, pancake wrote: > On 10/06/2011, at 4:26, Connor Lane Smith wrote: >> No, there's no bug here; size is allocated and memset on the next line. > > Your gcc sucks. Mine reports the error here. Size is only allocated if the > or condition applies which is not something to alway

Re: [dev] Re: sbase

2011-06-10 Thread Rob
On 10 June 2011 14:23, Rob wrote: > Anyway, I had another pop this morning and here's what I got. Also, forgot to mention, you'll need to alter true.c, false.c and tty.c so their main conforms, otherwise it won't compile.

Re: [dev] Re: sbase

2011-06-10 Thread Rob
writing one last night, but it didn't work properly due to static variables and no one on here seemed to want it so I didn't bother submitting. Anyway, I had another pop this morning and here's what I got. It's a bit hackish, but to do the job properly would require a parser so yeah... Thanks, Rob. monolithic.sh Description: Bourne shell script

Re: [dev] Re: sbase

2011-06-09 Thread Rob
On 9 June 2011 16:06, Hiltjo Posthuma wrote: > I like it, but what about -signalnumber (and maybe -signalname), I use > -9 all the time :) I was wondering whether to do that or not, it's pretty useful but there's a fair bit more code. I'll leave it to cls to decide. #include #include #include

Re: [dev] Re: sbase

2011-06-09 Thread Rob
On 9 June 2011 13:54, stateless wrote: > Arrgh fucking gmail. +1 #include #include #include #include #include "util.h" int main(int argc, char *argv[]) { int sig = SIGTERM; char c, *end; while((c = getopt(argc, argv, "s:")) != -1) switch(c){ case 's': sig = strtol(optarg, &end, 0)

Re: [dev] Re: sbase

2011-06-09 Thread Rob
On 9 June 2011 13:48, stateless wrote: > Hi, > > Just to be on the same page and we don't start working on the same > tools.  I'll look into implementing id, kill and comm. > > Thanks, > stateless Ah man, I've just been doing kill.c myself. Lowest SLOC count makes it into base? #include #include

Re: [dev] ideas on suckless file manager

2011-06-07 Thread Rob
On 7 June 2011 15:53, Le Tian wrote: > Continuing these threads about suckless "anything" > I've been looking quite a long time for fast and lightweight file manager > for dwm. There are occasions, when u need to see or show some lovely icons. > MC and derivatives are the last resort here. I liked

Re: [dev] [st] Font issues

2011-05-31 Thread Rob
On 1 June 2011 02:00, Kurt H Maier wrote: > On Tue, May 31, 2011 at 8:54 PM, Jonathan Slark > wrote: >> It's a point though, do we need a suckless screen replacement? If you use >> dwm you don't need it but lately I've been looking into cwm/tmux instead. > > If all you're looking for is detach, d

Re: [dev] suckless wget/curl

2011-05-27 Thread Rob
Here's one I wrote: http://github.com/jeffwar/wgetlite 26K without debugging symbols, unfortunately it doesn't statically link yet (getaddrinfo), but it'll be pretty trivial to sort it.

Re: [dev] sbase

2011-05-24 Thread Rob
On 23 May 2011 20:08, Bjartur Thorlacius wrote: > On 5/23/11, Rob wrote: >> Finally, I have an editor in the works, unfinished, but I plan to show >> you lot at some point though. > Interesting. More details, or show me the code. What's novel about him? Nothing nove

Re: [dev] sbase

2011-05-23 Thread Rob
t in if you're going for posix or whatever though. One more thing, we're not bothering with the -- flag, are we? > but I'm quite busy with exams atm. UK, right? Up late coding even with exams, I'm impressed. Finally, I have an editor in the works, unfinished, but I pl

Re: [dev] [dwm] move windows via keyboard

2011-05-14 Thread Rob
use, it's a modified version of moveresize.c Add something like this to config.h: { MODKEY|ControlMask, XK_q, jumpto, {.i = 0}}, { MODKEY|ControlMask, XK_e, jumpto, {.i = 1}}, { MODKEY|ControlMask, XK_a, jumpto, {.i = 2}}, { MODKEY|ControlMask, XK_d, jumpto, {.i =

Re: [dev] [PATCH] dmenu: Add commandline-options to determine Xinerama-screen

2011-05-12 Thread Rob
On 11 May 2011 12:39, Connor Lane Smith wrote: > Hey Rob, > > I think this was caused by the given '-m' not being present. I've > applied a patch which should fix this, since it falls back to the > mouse if the '-m' isn't there. Could you confirm whe

Re: [dev] [PATCH] dmenu: Add commandline-options to determine Xinerama-screen

2011-05-11 Thread Rob
ch caused dmenu to access past the end of the info array and a quick bounds check fixes it. Thanks, Rob. diff -r d0f5c7885a5a dmenu.c --- a/dmenu.c Sun May 08 15:15:24 2011 +0100 +++ b/dmenu.c Wed May 11 02:46:22 2011 +0100 @@ -515,6 +515,8 @@ if((monitor == info[i

Re: [dev] [dwm] devilspie doesn't work

2011-05-04 Thread Rob
embers. ... but I had a pop at writing a patch anyway. Add something like this to your config.h: { "XTerm", NULL, NULL, TAG_ANY, False, -1, trans, { .f = 0.5 } } And apply the patch. It might not apply cleanly since I diff'd from my heavily patched dwm, so you'll have to do some sh

Re: [dev] dmenu fast grab

2011-04-26 Thread Rob
patch, give this a try. Cheers, Rob. diff -r c2e77ee26371 dmenu.c --- a/dmenu.c Fri Jan 07 18:55:00 2011 + +++ b/dmenu.c Tue Apr 26 19:50:05 2011 +0100 @@ -66,6 +66,7 @@ int main(int argc, char *argv[]) { int i; + Bool fastgrab = False; progname = "dmenu"; for(i = 1; i

  1   2   >