Thanks everyone. @Lucy & @globalundo, that's a neat solution. Thanks for that. @Manuel, Thanks for your solution. That helped me in understanding how to use the APIs. Greatly appreciated.
On Fri, May 30, 2014 at 5:23 PM, globalundo <[email protected]> wrote: > Hey, > > I wrote a script for this purpose. I would recommend to enable dynamic > titles in ( your terminal emulator | screen | tmux ) in order to distinguish > them. > > cat > dmenu_apps.sh << EOF > #!/bin/bash > wmctrl -lx | awk '{for(i=5;i<NF;i++)printf "%s",$i OFS; if (NF) printf > "%s",$NF; printf ORS}' | dmenu -name 'dmenu' -class 'dmenu' -l 20 -i -p > 'Choose application:' | xargs wmctrl -a > EOF > > Sample screenshot: > https://dl.dropboxusercontent.com/u/4144704/2014-05-30-154751_1920x1080_scrot.png > > > On Fri, May 30, 2014 at 3:00 PM, Manuel Kasser <[email protected]> > wrote: >> >> Ah, forgot the script I'm calling, dmenuselect: >> >> #!/bin/bash >> >> var=$(printf $1 | dmenu -i -l 50) >> echo -n $var >> >> Just a simple wrapper around dmenu. >> >> >> -- >> To unsubscribe, send mail to [email protected]. > > > > > -- > Oleg Mikhailov > Linux system administrator > > Skype: globalundo > Website: globalundo.com -- Cheers, Abhijeet Rastogi (shadyabhi) -- To unsubscribe, send mail to [email protected].
