Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dmenu howto (standalone program launcher)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
kenshis
n00b
n00b


Joined: 12 Feb 2007
Posts: 13
Location: Lithuania

PostPosted: Tue Jan 29, 2008 9:23 pm    Post subject: dmenu howto (standalone program launcher) Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Feb 01, 2008 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Advocate
Advocate


Joined: 21 May 2004
Posts: 4185
Location: Removed by Neddy

PostPosted: Fri Feb 01, 2008 5:42 pm    Post subject: Reply with quote

except nfc what it is for
_________________
A free press is the unsleeping guardian of every other right that free men prize; it is the most dangerous foe of tyranny. Where men have the habit of liberty, the Press will continue to be the vigilant guardian of the rights of the ordinary citizen.
Back to top
View user's profile Send private message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 66
Location: Brasschaat, Belgium

PostPosted: Sat Feb 02, 2008 11:47 pm    Post subject: Re: dmenu howto (standalone program launcher) Reply with quote

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
View user's profile Send private message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 66
Location: Brasschaat, Belgium

PostPosted: Sun Feb 03, 2008 6:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum