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
;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
message packing
I've seen, but do you know a way to make it suck even less?
Seems pretty straightforward otherwise :)
Cheers,
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
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
>&
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
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
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
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
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
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
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
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
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
mp; xmessage connected
[ssh-machine %] ...
`xmessage connected' will be executed even though ssh hasn't exit(0)'d
yet.
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
's X11 configure and make flags.
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
* 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
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
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
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
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
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
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
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/
ull" or maybe upload the core dump?
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
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
Thanks for the good suggestions - I'll have a pop at the daemon and
see how it goes.
Cheers,
Rob
writing to the list -
anyone got any smart ideas about this?
Cheers,
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
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
@
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
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'
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,
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
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
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...
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
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
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
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
> 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
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
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 +=
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.
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
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
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
s you can somehow clone the window or something
(I'm not very clued up on X11).
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
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
e -s with
-g in config.mk)
Rob
a word, or Shift+Home, Backspace
to delete a line. Unix has C-W and C-U, it's just muscle memory.
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
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.
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
reading this.
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
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
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
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.
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
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
it in tomorrow if I get some time.
Thanks,
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
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
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
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
opinions/patches on it anyway.
Thanks,
Rob.
[1]: http://www.github.com/jeffwar/wgetlite
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
On 14 August 2011 21:03, Bastien Dejean wrote:
> Hi,
Hello
> Any idea on how to implement a fullscreen layout?
Mod + b, Mod + m
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
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
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
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
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
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
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.
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
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
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
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
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
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.
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
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
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)
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
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
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
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.
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
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
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 =
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
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
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
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 - 100 of 170 matches
Mail list logo