Ross Mohn | 25 May 21:24 2015

[dvtm] TAGKEYS macro for dvtm

The TAGKEYS macro from dwm's config.def.h is approriate for dvtm as
well. Patch is attached.


Attachment (config.def-TAGKEYS.h): text/x-chdr, 3495 bytes
Ross Mohn | 25 May 21:22 2015

[dvtm] Pertag patch for dvtm

Hi all,

I sent this directly to Marc, but I think it would be useful to post
here as well. The attached patch for an implementation in dvtm of the
dwm pertag patch. It actually plays much more nicely with multiple tags
than I had anticipated. I think it's appropriate for the master branch,
but that's not up to me. I'd love to hear some feedback!

Here's the summary of features:

    The following settings are chosen individually for each tag. Each
    starts out using the default settings from config.h.

        * Layout
        * Number of clients in the master window
        * Percentage of the screen used by the master window
        * Status bar position and visibility

    When toggling to view multiple tags, the settings of the first
    selected tag are respected. This remains true even when using the
    View Previous Tag functionality.

Thanks! -Ross

Attachment (dvtm-0.14-pertag.diff): text/x-diff, 4274 bytes
Ivan Tham | 24 May 16:24 2015

[st] Compiling with musl libc doesn't work

I tried compiling st with musl libc by changing CC to:


But it doesn't seem to work.

< Do what you like, like what you do. >
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
st build options:
CFLAGS   = -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os -I. -I/usr/include -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz 
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz  -DVERSION="0.5" -D_XOPEN_SOURCE=600
LDFLAGS  = -g -L/usr/lib -lc -L/usr/X11R6/lib -lm -lrt -lX11 -lutil -lXext -lXft -lfontconfig -lfreetype 
CC       = musl-gcc
CC st.c
In file included from st.c:5:0:
/usr/include/limits.h:123:3: warning: #include_next is a GCC extension
 # include_next <limits.h>
(Continue reading)

Greg Reagle | 22 May 20:26 2015

dvtm: don't change master or numbering

Hello.  I would like dvtm to behave differently.  I don't want creating
a new shell window (Mod-c) to make the new shell window the master; I
want the master to stay the master.  I also don't want creating a new
shell window to renumber all the windows; I want the new window to be
one plus the last window number.

I have started to work on this, and it seems that adding the new window
to the end of the window list rather than the beginning will achieve
these two goals.

Has anyone already implemented this functionality?  Does the way I'm
suggesting make sense?



-- - Does exactly what it says on the tin

Ivan Tham | 22 May 08:44 2015

[st] Powerline fonts to large

I had setup Powerline fonts using fontconfig:

    mv PowerlineSymbols.otf ~/.fonts/
    fc-cache -vf ~/.fonts/
    mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

I had set st font to:

    static char font[] = "DejaVu Sans Mono:pixelsize=12:antialias=false:autohint=false,\
                          WenQuanYi Zen Hei Mono:pixelsize=12";

But the Powerline fonts are too large.

And the patch for scrollback does not work, is there other method to use
scrollback without using terminal multiplexer as it disable many other


< Do what you like, like what you do. >
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
Ivan Tham | 22 May 08:37 2015

[st] Fcitx not working in st

I typed ``Ctrl + Space`` in st but it seems like it doesn't work. Fcitx
is a Chinese IME for XIM.


< Do what you like, like what you do. >
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
Ted To | 21 May 22:00 2015

slock for dual displays


For my Toshiba L675 laptop connected to an external monitor, slock puts
the external monitor to sleep but not the laptop display.  Both slimlock
and i3lock put both to sleep.


Jens Staal | 18 May 13:46 2015

[sbase] sbase on Plan9/APE - suggested support libraries?

Dear all,

I have just tried to package sbase for Plan9/APE in the new "9front-ports" [1] 
project. As expected, there are several things missing in APE needed for 

Do you have any good suggestions for suckless 3rd party libraries that could 
complement the APE libraries for building sbase as completely as possibe?
Worst-case scenario will be to look at gnulib and newlib I guess.

For example, I am now using TRE for <regex.h>
and an extracted mini-library from newlib for <libgen.h>


Michael Forney | 16 May 06:57 2015

[sbase] [PATCH 1/3] mv, cp: Preserve nanosecond timestamps

Otherwise, we run into problems in a typical autoconf-based build

  - config.status is created at some point between two seconds.
  - config.status is run, generating Makefile by first writing to a file
    in /tmp, and then mv-ing it to Makefile.
  - If this mv happens before the beginning of the next second, Makefile
    will be created with the same tv_sec as config.status, but with
    tv_nsec = 0.
  - When make runs, it sees that Makefile is older than config.status,
    and re-runs config.status to generate Makefile.
 libutil/cp.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libutil/cp.c b/libutil/cp.c
index 32e0dc6..0f098d3 100644
--- a/libutil/cp.c
+++ b/libutil/cp.c
 <at>  <at>  -30,7 +30,7  <at>  <at>  cp(const char *s1, const char *s2, int depth)
 	FILE *f1, *f2;
 	struct dirent *d;
 	struct stat st;
-	struct utimbuf ut;
+	struct timespec times[2];
 	ssize_t r;
 	int (*statf)(const char *, struct stat *);
 	char target[PATH_MAX], ns1[PATH_MAX], ns2[PATH_MAX], *statf_name;
 <at>  <at>  -154,9 +154,9  <at>  <at>  cp(const char *s1, const char *s2, int depth)
 	if (cp_aflag || cp_pflag) {
(Continue reading)

Roberto E. Vargas Caballero | 15 May 08:02 2015

Patches applied


	I have applied the patches 'Small bugfix for makeglyphfontspecs
cass in drawregion' by suigin, and 'set selection to IDLE on clear' by
v4hn. Thanks!!!


Alexandre Niveau | 15 May 00:29 2015

[sbase] [PATCH 1--2] ls: fix -S and -q


I found some bugs in ls.

1. option -S does not work on its own:

$ echo "aa" >a; echo "b" >b; echo "ccc">c
$ ls -S

First attached patch fixes this.

2. When filenames contain control chars, it only works fine when no 
option among -tSFilpR is specified:

$ touch "$(printf "toto\ntiti")"
$ ls -tq
ls: lstat toto?titi: No such file or directory

Second attached patch fixes this. Basically the problem was that 
ent->name was modified “in place”. With the patch, the non-printable 
chars are “sanitized” only when printed out. This also makes -q work 
with -U (ent->name was not modified in this code path).

For the sanitizing function, I choose not to return a modified string in 
order to avoid strdup-ing and free-ing, given that the sanitized name is 
never used more than once. It causes some one-line printf's to be 
exploded into several puts, though.
(Continue reading)