You are not logged in.

#1 2011-08-27 20:12:11

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

«dmenu-launch»

[dmenu-launch] is a launcher written in Bash that lets you quickly launch programs by name.  In addition to binary names, it supports launching XDG shortcuts and will display these (including your local launchers) in the list.

To those that have already been using it, the 0.4.1 > 0.5.3 update fixes a few bugs and adds launch history, uses lsx instead of the deprecated (and removed) dmenu_run, and XDG shortcuts are parsed and cached in one fell swoop to speed things up.

[View screenshot]
[View the AUR package]

Last edited by Wintervenom (2011-08-27 21:12:55)

Offline

#2 2011-08-27 22:28:53

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: «dmenu-launch»

What's up with this config file dmenu-launch asks for? 

"/home/anoknusa/.config/dmenu-launch/config: No such file or directory"

Offline

#3 2011-08-27 23:06:37

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: «dmenu-launch»

ANOKNUSA wrote:

What's up with this config file dmenu-launch asks for? 

"/home/anoknusa/.config/dmenu-launch/config: No such file or directory"

It will be created if one of the options ("Run in Terminal," etc.) are changed.
The message can be ignored, but I have now fixed it in the AUR package.

Last edited by Wintervenom (2011-08-27 23:07:39)

Offline

#4 2011-08-28 15:22:55

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: «dmenu-launch»

Ok, thanks for clarifyng.

Offline

#5 2011-08-31 22:16:38

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: «dmenu-launch»

0.5.3 > 0.5.6:

- Better caching:  XDG and binary lists are generated for the next dmenu-launch in the background.
- If dmenu-launch is ran from a terminal/console and you have Rafunchi's [slmenu] installed, you will be able to launch applications in a dmenu-esque manner.  By default, it will not launch applications detached in this mode (can be toggled with the "Detatch" option) so that you will be able to launch console programs.

Last edited by Wintervenom (2011-08-31 22:19:30)

Offline

#6 2011-08-31 23:10:15

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: «dmenu-launch»

Ah, great. I was clinging to .4.1 because until .5.6, all of these updates were unusable for me. The caching was super slow and it would take multiple seconds to launch. The difference was that 4.1 still used dmenu_path, I believe. And I have dmenu_path_c installed from the AUR, which is super fast.

Anyway, .5.6 is great! I love dmenu-launch!

One question, though: Upon first launch, we are presented with a menu about history, terminal, etc. By default, I don't want apps launched from the terminal, but what if I do sometimes? The old dmenu-launch had the [Terminal] option every time we launched it.

Offline

#7 2011-08-31 23:15:13

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: «dmenu-launch»

I'd suggest that your script should check if there's a file ~/.dmenurc. Mine looks like this

DMENU='dmenu -i -l 20 -nb #333333 -nf #a8a3f7'

Something like

if test -e $HOME/.dmenurc
then
	source $HOME/.dmenurc
else
DMENU=dmenu
fi

should do it.
edit: Nevermind, you seem to do this with DMENU_OPTIONS.

Last edited by Army (2011-08-31 23:19:41)

Offline

#8 2011-09-01 00:14:12

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: «dmenu-launch»

pogeymanz wrote:

One question, though: Upon first launch, we are presented with a menu about history, terminal, etc. By default, I don't want apps launched from the terminal, but what if I do sometimes? The old dmenu-launch had the [Terminal] option every time we launched it.

I had moved all the options to the end of menu.  I can now see how this might be a bit annoying, so I made another revision to the AUR package and have moved this and the "Detach" option back to the front.  Also, I have fixed the first-launch bug:  it should have generated a full menu, but I suppose it would have helped to have actually fed the rest of the items to it.  tongue

Offline

#9 2012-01-19 16:08:29

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: «dmenu-launch»

Would it be a major development effort to add multiple executable searches and bash-style command tab completion?

So if I wanted to sudo tail /var/log/kernel.log not only will it find sudo and tail but it would also locate /var/log/kernel.log using command tab completion.

I figure there'd need to be a special keypress required between 'sudo' and 'tail' to indicate that I'm still looking for executables and a different special keypress between 'tail' and '/var/log/ker...' to indicate that I'm now switching over to command tab completion for the command argument.

Or is all of this already there and I just don't know how to user either dmenu or dmenu-launch?

And in a totally "Aim for the treetops - land on the ground. Aim for the stars - land of the treetops." manouver, how about another special keypress to indicate '--lines=N' is a command option if I wanted to sudo tail --lines=N /var/log/kernel.log instead?

Last edited by KairiTech (2012-01-19 16:53:31)

Offline

Board footer

Powered by FluxBB