Oct. 20, 2023
I'll often have issues with DWM where some Java applications won't work right in DWM for some odd reason. One of the worst that I've found so far is the Arduino IDE. It is so easy to use for quicly prototyping and throwing some code together for an just about any microcontroller, but it is unusable in DWM.
Thankfully I found a fix for this dumb issue. Before running the Arduino IDE in your shell, just run this command:
export _JAVA_AWT_WM_NONREPARENTING=1
Then run the arduino
command in the same shell.
If you want to launch the Arduino IDE with this fix automatically from a tool like dmenu, just make a script called arduino-fix
that looks like this:
#!/bin/bash
export _JAVA_AWT_WM_NONREPARENTING=1
arduino
And then make it executable and install the script:
chmod +x arduino-fix
sudo cp arduino-fix /usr/bin/
Now you can run the fix easily like any other program.
buzzqrd