[hackers] [dwm] config.def.h: ClkTagBar missing from comment || Hiltjo Posthuma

2018-05-24 Thread git
commit c3a2e016bb65c00bd44b6461b1b1bbaa61f20093 Author: Hiltjo Posthuma AuthorDate: Fri May 25 06:56:36 2018 +0200 Commit: Hiltjo Posthuma CommitDate: Fri May 25 06:56:36 2018 +0200 config.def.h: ClkTagBar missing from comment

Re: [hackers] [dwm][PATCH] Status bar magic numbers replaced with configurable variables.

2018-05-24 Thread Hiltjo Posthuma
On Thu, May 24, 2018 at 10:48:27PM -0400, Christopher Drelich wrote: > Currently in dwm there are two magic numbers relating to the statusbar in > dwm.c: > > sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ > > bh = drw->fonts->h + 2; > > I made a patch that replaced these magic numbers

[hackers] Re: [dwm][PATCH] Status bar magic numbers replaced with configurable variables.

2018-05-24 Thread Christopher Drelich
Included below is the version of the patch that I would personally recommend using (if any are used.) It makes for cleaner code, fewer magic numbers, and more options for configuration. Unlike the other patch, this patch slightly changes dwm's appearance from pre-patch. The change being that

[hackers] [dwm][PATCH] Status bar magic numbers replaced with configurable variables.

2018-05-24 Thread Christopher Drelich
Currently in dwm there are two magic numbers relating to the statusbar in dwm.c: sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ bh = drw->fonts->h + 2; I made a patch that replaced these magic numbers with configurable variables, plus a third configurable variable that made sense with

[hackers] Re: [dwm][PATCH] ClkTagBar missing from comment.

2018-05-24 Thread Christopher Drelich
I sent this patch in last night, and though my message in my "Sent" box shows the patch contents, the message in the archives is blank. I'm resending with the patch below. My apologies if this was previously visible to those who received the email. Either way, any idea why this would not have

Re: [hackers] [slstatus][PATCH] backlight: implemented openbsd support

2018-05-24 Thread Tobias Tschinkowitz
On Thu, May 24, 2018 at 02:55:28PM +0200, Aaron Marcher wrote: > Hi, > > > i have implemented basic support for the backlight function on OpenBSD. > > The problem here is that /dev/ttyC0 permission is 600 (root:wheel) so a > > user cannot read from the device without changing the permission or >

Re: [hackers] [slstatus][PATCH] backlight: implemented openbsd support

2018-05-24 Thread Aaron Marcher
Hi, i have implemented basic support for the backlight function on OpenBSD. The problem here is that /dev/ttyC0 permission is 600 (root:wheel) so a user cannot read from the device without changing the permission or running slstatus as root. Running slstatus as root is no real option -

[hackers] [slstatus][PATCH] ram: fixed int overflow on pagetok macro

2018-05-24 Thread Tobias Tschinkowitz
--- components/ram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ram.c b/components/ram.c index 0ac9753..0333b3b 100644 --- a/components/ram.c +++ b/components/ram.c @@ -75,7 +75,7 @@ #include #define LOG1024 10 - #define

Re: [hackers] [slstatus][PATCH] backlight: implemented openbsd support

2018-05-24 Thread David Demelier
On Wed, May 23, 2018 at 08:41:17PM +0200, Tobias Tschinkowitz wrote: > Anyway, this is just an proposal. Hopefully there is > another solution to solve this. I know that we could also do this by > linking against xcb-xrandr (like xbacklight does) but i think we should > not do this for now.