View previous topic :: View next topic |
Author |
Message |
kenshis n00b
Joined: 12 Feb 2007 Posts: 13 Location: Lithuania
|
Posted: Tue Jan 29, 2008 9:23 pm Post subject: dmenu howto (standalone program launcher) |
|
|
dmenu is greet tool for those, who dont use kde or gnome.
I spent a lot of time searching how to use "dmenu". i REALY don understand, why was so hard to put THESE lines to manual or anywhere else
Code: | exe=`dmenu_path | dmenu` && eval "exec $exe" |
or
Code: | exe=`dmenu < myLinefeedDelimitedListOfFaves` && eval "exec $exe" |
To use dmenu , you MUST make script from lines above, and THEN run it.
Hope this help's anybody |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Fri Feb 01, 2008 5:22 pm Post subject: |
|
|
Moved from Desktop Environments to Documentation, Tips & Tricks.
Tip/trick moved here. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Fri Feb 01, 2008 5:42 pm Post subject: |
|
|
except nfc what it is for _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
zixnub n00b
Joined: 27 Dec 2007 Posts: 67 Location: Brasschaat, Belgium
|
Posted: Sat Feb 02, 2008 11:47 pm Post subject: Re: dmenu howto (standalone program launcher) |
|
|
kenshis wrote: | dmenu is greet tool for those, who dont use kde or gnome.
I spent a lot of time searching how to use "dmenu". i REALY don understand, why was so hard to put THESE lines to manual or anywhere else
Code: | exe=`dmenu_path | dmenu` && eval "exec $exe" |
or
Code: | exe=`dmenu < myLinefeedDelimitedListOfFaves` && eval "exec $exe" |
To use dmenu , you MUST make script from lines above, and THEN run it.
Hope this help's anybody |
I use the function from wmii which lists all the the executables from your path and sends them to dmenu to for exec, I'll post it when I get back home. |
|
Back to top |
|
|
zixnub n00b
Joined: 27 Dec 2007 Posts: 67 Location: Brasschaat, Belgium
|
Posted: Sun Feb 03, 2008 6:27 pm Post subject: |
|
|
Code: | #!/bin/sh
PROGSFILE=".proglist"
proglist() {
paths=$(echo "$@" | sed 'y/:/ /')
ls -lL $paths 2>/dev/null \
| awk '$1 ~ /^[^d].*x/ && NF > 2 { print $NF }' \
| sort | uniq
}
proglist $PATH >$PROGSFILE
sh -c "$(eval dmenu -b <$PROGSFILE)" |
put it in a file, make it executable and run it! |
|
Back to top |
|
|
|