Re: Dmenu Hacking Thread

So, is there a very easy way to increase the font size ? I have read the man page, but unfortunately there is no example there.

Sorry if silly question, but i have found little help by googling & what there is, is pitched at a technical level far beyond my understanding.

If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Re: Dmenu Hacking Thread

flipper, unless I'm missing something, you'd just need the "-fn" option. use `dmenu_run -fn <fontname>` where fontname is a full X11 fontstring. The easiest way to get a suitable fontstring is from xfontsel.

Re: Dmenu Hacking Thread

Thanks trilby, after a lot of messing about with xfontsel, finally got a more legible font size.

For anyone with same problem:

exec dmenu_run -fn -misc-fixed-*-*-*-*-20-200-*-*-*-*-*-*

worked for me.

thx again.

If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Now it compiles fine but obviously doesn't work as expected. I'm not sure how to make it read the name of the application you try to run and getting the Class of that application accordingly. Ivoarch uses the config.h of DWM so we can apply certain classes in there, as per so:

The only thing you may have to modify is the number of dzen processes running. In my Xmonad config, I have two dzen processes running, so when searching for the process I simply checked the count and restarted the last one. There is probably a better way to do this, but this is just a quick edit.

Sharing this because it took me forever to find. It makes my Xmonad setup usable by everyone that wants to borrow my laptop. No more "WHERES THE LAUNCHER" questions

EDIT: Seems like some applications are immune to the approach above (so far gimp, truecrypt and libreoffice).Here's a version that works with libreoffice and virtualbox but NOT gimp/truecrypt.EDIT2: And here's a version that works with gimp/truecrypt too, thanks to Army.

Re: Dmenu Hacking Thread

Army wrote:

(This &> /dev/null at the end doesn't seem to be required)

You're right. It's there because i did not provide a class to search, which resulted in a "switching to default"-message being printed, which annoyed me - Your solution is better. My OCD tells me to end the first xdotool command with a "&& exit 0", so we possibly avoid starting another xdotool-instance (if something is found on the first one, no need to execute the last one).EDIT: My OCD is wrong, "&& exit 0" won't work with e.g. Firefox.

Army wrote:

Pretty neat, except if you run multiple terminals.

I have a single urxvtc-window which connects to a tmux-session running multiple terminals, so that's not a problem for me.

NB: Your solution will not work with VirtualBox and LibreOffice, since they're started by a weird command - see the updated script above.

Re: Dmenu Hacking Thread

Don't need it yet, but as soon as this gets out of hand I'll make a script to list and select tools I don't use that often. But no, it won't be the first entry inside itself But it makes more sense to list it by ranking.

Re: Dmenu Hacking Thread

Army wrote:

Don't need it yet, but as soon as this gets out of hand I'll make a script to list and select tools I don't use that often. But no, it won't be the first entry inside itself But it makes more sense to list it by ranking.

I think I'll write one soon and of course then share it here.

Actually, the obvious entry for it inside itself is to edit its config. That's where my dedit script (above) has itself inside it.

"...one cannot be angry when one looks at a penguin." - John Ruskin"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Re: Dmenu Hacking Thread

I thought I'll get those entries automatically by naming the scripts e.g. dmenu-nso-* (nso = not so often). Maybe this will be too hard for me, since I'm a horrible scripter. But providing an entry to edit the config makes perfectly sense!