You are not logged in.

#1 2009-04-09 05:20:08

Doji
Member
Registered: 2009-04-09
Posts: 4

Clean up your dmenu

I had an idea, it's rather simple, but I haven't seen it suggested anywhere so I decided to mention it here. Instead of using dmenu_path, I'm using

pacman -Qe -q | dmenu

There are now 1600 less unnecessary items in my dmenu big_smile. I understand that it won't make a big difference, but maybe it'll take a few less keystrokes to get where I'm going. It looks a bit cleaner too.

Edit: On those rare occasions when the package name doesn't match the binary (ex. openoffice) it breaks. I should have thought of that before. Unfortunate. I knew there had to be a reason this wasn't being used.

Last edited by Doji (2009-04-09 07:59:48)

Offline

#2 2009-04-09 06:48:04

SkonesMickLoud
Arch Linux f@h Team Member
From: The D of C
Registered: 2008-09-20
Posts: 178

Re: Clean up your dmenu

Cool!  Thanks.

Have found a problem with it though.  This way uses package names, rather than executable names.  For instance, the Transmission package is called transmission-gtk/cli, but the executable is just transmission.  Dmenu is seeing transmission-gtk in my case.  Nothing a little symlink can't fix though.

Last edited by SkonesMickLoud (2009-04-09 07:03:28)

Offline

#3 2009-04-09 12:17:27

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Clean up your dmenu

I quickly hacked this improved version together:

pacman -Qel | awk '/\/bin../ {print $2}' | dmenu

it pipes all executables from all explicitly installed packages to dmenu


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#4 2009-04-09 12:45:12

b3n
Member
Registered: 2008-11-12
Posts: 20

Re: Clean up your dmenu

You could always just put your most used applications first, like http://bbs.archlinux.org/viewtopic.php? … 75#p531875.

Last edited by b3n (2009-04-09 12:45:36)

Offline

#5 2009-04-09 18:25:40

Doji
Member
Registered: 2009-04-09
Posts: 4

Re: Clean up your dmenu

b3n wrote:

You could always just put your most used applications first, like http://bbs.archlinux.org/viewtopic.php? … 75#p531875.

That's a really excellent solution. Thanks.

Offline

Board footer

Powered by FluxBB