[dev] Linters

2019-05-12 Thread Adrian Grigore
Hey, I also created a set of linters that check for max line length, indenting style, trailing whitespace and trailing newlines. Please let me know your opinions. -- Thank you, Adi, Freelance Developer http://adi.tilde.institute/ linters.tar.gz Description: application/gzip

Re: [dev] [dwm] Need help about gray windows of Java applications

2019-05-12 Thread Przemek Dragańczuk
In the terminal, as part of your shell's RC file (.bashrc, .zshrc etc.) or in .xinitrc. I have it in a startup script that is executed from .xinitrc when dwm starts. On 12/05/19 06:13, Enan Ajmain wrote: > Where do I run `wmname LG3D`? > > On Sun, May 12, 2019 at 4:41 PM Przemek DragaDczuk > wrot

Re: [dev] [dwm] Need help about gray windows of Java applications

2019-05-12 Thread Enan Ajmain
Where do I run `wmname LG3D`? On Sun, May 12, 2019 at 4:41 PM Przemek Dragańczuk wrote: > > Running `wmname LG3D` should help with that. I've had similar issue and > that fixed it for me. > On 12/05/19 03:09, Enan Ajmain wrote: > > Hi, > > > > I need to use logisim, a tool for designing and simul

Re: [dev] key-value config reader

2019-05-12 Thread Piotr Oleskiewicz
Hi Michael, > What about _Generic in C11? This allows you to choose an expression > based on the type of another expression. Looks like a much better version of something I tried implementing on my first try, thanks a lot! Best, Piotr

Re: [dev] key-value config reader

2019-05-12 Thread Hiltjo Posthuma
On Sun, May 12, 2019 at 12:45:42PM +0200, Markus Wichmann wrote: > On Sun, May 12, 2019 at 01:30:10AM -0700, Michael Forney wrote: > > What about _Generic in C11? This allows you to choose an expression > > based on the type of another expression. > > God dammit, looks like I need to get some C11

Re: [dev] key-value config reader

2019-05-12 Thread Markus Wichmann
On Sun, May 12, 2019 at 01:30:10AM -0700, Michael Forney wrote: > What about _Generic in C11? This allows you to choose an expression > based on the type of another expression. God dammit, looks like I need to get some C11 training under my belt. Completely forgot _Generic was a thing. Ciao, Mark

Re: [dev] [dwm] Need help about gray windows of Java applications

2019-05-12 Thread Przemek Dragańczuk
Running `wmname LG3D` should help with that. I've had similar issue and that fixed it for me. On 12/05/19 03:09, Enan Ajmain wrote: > Hi, > > I need to use logisim, a tool for designing and simulating logic > circuits. But the problem is that logisim is built in Java, and due to > well-known issue

[dev] [dwm] Need help about gray windows of Java applications

2019-05-12 Thread Enan Ajmain
Hi, I need to use logisim, a tool for designing and simulating logic circuits. But the problem is that logisim is built in Java, and due to well-known issue in Java it doesn't launch properly in dwm. I just installed xfce4 and checked that logisim works perfectly fine with it. After moving around

Re: [dev] key-value config reader

2019-05-12 Thread Michael Forney
On 2019-05-12, Markus Wichmann wrote: > On Sat, May 11, 2019 at 08:52:32PM +0100, Piotr Oleskiewicz wrote: >> I would prefer to >> write >> >> X(int, i, 1) >> >> rather than >> >> X(int, i, atoi, "%d", 1) >> >> Many thanks, >> Piotr >> > > That is going to be tough, as in C in a macro, t

Re: [dev] key-value config reader

2019-05-12 Thread Markus Wichmann
On Sat, May 11, 2019 at 08:52:32PM +0100, Piotr Oleskiewicz wrote: > I would prefer to > write > > X(int, i, 1) > > rather than > > X(int, i, atoi, "%d", 1) > > Many thanks, > Piotr > That is going to be tough, as in C in a macro, there is no way to really determine what type name you