Thomas Preissler | 6 Oct 17:29 2015

Contributing an improved "passmenu" script


apologies if this is the wrong place, but I would like to contribute
an improved "passmenu" script for dmenu/pass integration.

What do you advice?




-- | Twitter:  <at> module0x90 | PGP-Key: 75889415
GPG Fingerprint:  CCBD 153A D257 CA7E A217  FDF7 5928 03D1 7588 9415

shua lloret | 4 Oct 19:45 2015

[sandy] [st] Title incorrectly shown if TERM=st

When I try to run sandy with TERM set as any of st,st-16color,st-256color,
 the title line is not shown, and is instead printed out randomly to stdout
 as I try to insert text. This happens when running "TERM=st sandy" in rxvt,
 and does not happen when running "TERM=xterm sandy" in st.

 I don't know enough about ncurses to diagnose whether it is a problem with, or sandy's use of ncurses (or ncurses itself), but the only
 similar experience I've had is trying to use
     TERM=st vi
 when /usr/share/terminfo/s/st does not exist.

 Does anyone else experience this behaviour?
 Right now my solution is similar to ssh:
     alias sandy="TERM=xterm-256color sandy"
 in my shell rc file


Greg Reagle | 2 Oct 15:41 2015

sbase: od: type 'c': format characters in octal as specified by standard

This is relative to master.  This seems to be required by the base 
standard, not an XSI extension.

Thuban | 28 Sep 21:40 2015

simple rss to email

Hi all,
I asked a few time ago some advice for a suckless feed reader. Hiltjo
answered with sfeed [0] and there was this [1] from Patrick on the list.

Because rss2email was too heavy for me, I tried to gather previous work
and finally wrote srss [2]. For now, it's just shell scripts to retrieve
feeds and then send thems with mail. 
Tools used are xmlstarlet, wget (or curl if you prefer) and html2text

It's far from being perfect, but it works pretty well, and I wanted to
thank Hiltjo and Patrick.

Feel free to hack and give any advice to improve srss.


[0] :
[1] :
[2] :

Greg Reagle | 28 Sep 18:51 2015

sbase: is od needed?

Howdy.  Would it be useful for me to write od?  Has anyone else worked 
on it?

Pickfire | 27 Sep 12:50 2015

[slock] Ctrl+Alt+Backspace Xorg Termination works

Hi, I set the xorg termination with `localectl`. When using `slock`, I
press Ctrl+Alt+Backspace and it works, the Xorg is killed and go back to
the shell. What should I do to prevent that or is there a patch for it?


< Do what you like, like what you do. >
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

dequis | 25 Sep 05:56 2015

[st] [PATCH] Fix extra bracketed paste markers when pasting >8kb

Before this patch, when pasting over BUFSIZE (8192 bytes here), st would
do the following:

    \e[200~...8192 bytes...\e[201~\e[200~...remaining bytes...\e[201~

With this patch, the start marker is only sent when the offset is 0 (at
the beginning of selnotify) and the end marker is only sent when the
remaining bytes to read are 0 (at the end).

For short pastes, both conditions are true in the same iteration.

For long pastes, it removes the extra markers in the middle, keeping the
intended wrapping:

    \e[200~...8192 bytes......remaining bytes...\e[201~
 st.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/st.c b/st.c
index bcf74b3..9de30ec 100644
--- a/st.c
+++ b/st.c
 <at>  <at>  -1135,10 +1135,10  <at>  <at>  selnotify(XEvent *e)
 			*repl++ = '\r';

+		if (IS_SET(MODE_BRCKTPASTE) && ofs == 0)
 			ttywrite("\033[200~", 6);
(Continue reading)

Richard | 24 Sep 20:32 2015

Stali RC

I have stumbled across stali and it looks intriguing. I would like to install it this weekend. I have perused


... I just wanted a quick sanity check:

- Am I right in assuming that stali does not include a /etc directory (and therefore does not include
prebuilt rc scripts).

- If so does anyone have sample rc startup/shutdown scripts that I could use as a basis?

(I can grab scripts from my slackware box or a backup of an old LFS machine - but I am keen to see how the experts
do it...)
Many Thanks, Richard.

Nick | 8 Sep 15:30 2015

[slock] chown to root:root on install?

Hi folks,

I just installed slock, and found that it couldn't disable the 
out-of-memory killer for itself, so wouldn't run (presumably it 
would have failed later through not being able to read the shadow 
file, too). This was because I installed it in a directory in my 
$HOME using "make install" rather than as root with "sudo make 
install", so it was owned by my user.  As such the setuid bit didn't 
mean its privileges were heightened to the root user.

Ideally slock should always be owned by the root user, so that it 
can disable the oom lock. I wonder what the right solution is here, 
as obviously one can't chown a file to be owned by root if one isn't 
root oneself.

One option would be to add a line like this to the install rule of 
the makefile:

	 <at> chown root:root ${DESTDIR}${PREFIX}/bin/slock || echo "Could not chown root:root
${DESTDIR}${PREFIX}/bin/slock; please do this manually"

Or else add a note to the readme that the make install rule should 
be run as root. I am not in the habit of installing software outside 
of $HOME, so I don't tend to think about elevating to root to 
install software, so this initially confused me.

Separately to this, slock seems to exit (without prompt) after about 
0.3s after I run it, unless I move the mouse or hit the keyboard 
directly after starting it. Has anyone else seen this? I could look 
into it more, but wonder if I am perhaps being stupid?
(Continue reading)

Jan Christoph Ebersbach | 7 Sep 20:30 2015

[st] expose cursor shape in config.def.h


I just realized that st implements the cursor shapes Block, IBeam and
Underline.  It would be nice if the default cursor shape would be
configurable, i.e. because IBeam is a nice alternative to Block.

The attached patch exposes cursor shape in config.def.h.


Jan Christoph

Jan Christoph Ebersbach
I didn’t want some petty, inferior brand of righteousness that comes
from keeping a list of rules when I could get the robust kind that comes
from trusting Christ - God’s righteousness.  Phil 3:9
Attachment (cursorshape.patch): text/x-patch, 1025 bytes
Balazs Kezes | 6 Sep 16:07 2015

sinit umount problem


Although I don't use sinit directly but I do use a very similar
minimalistic init program in which I've managed to track down a problem.
It seems sinit is also suffering from the same problem as I've seen no
workarounds in it for this.

Usually of one the last steps in shutdown/reboot phase is to remount /
as read only. This can only happen if there are no open write handlers
to any of the files. This is usually fine because all other processes
are dead by this step and init doesn't open any files.

However there is one other case: If init gets deleted (e.g. you compile
a new version and the old one is replaced) or in case of dynamic linking
one the libs get deleted (e.g. libc update) then init is holding
references to deleted files. This will stop the system from remounting
the / as read only. When you get to this point there is no way to have /
cleanly unmounted because you can't kill init (you get a kernel panic if
you do). So all you can do is just sync & reboot without unmount. This
is usually not a problem for a filesystem with journaling but I'm using
a raspberry pi with ext2 on a very slow sd card on which fsck does a
full check after such reboot which is quite annoying (or was until I've
rootcaused and fixed the problem).

You can very simply reproduce the problem: add a sleep statement at the
very end of your reboot script and recompile init. You should see an
error message from umount.

Obviously the simplest solution is to use static linking and then never
ever recompile init. :)
(Continue reading)