Posted on May 7, 2009 - by Jérôme M.
Bashrun: un lanceur simple et efficace
Bashrun est un lanceur d’applications intelligent que j’utilise sous Openbox et Pekwm. Il est très léger et utilise Xterm et bash (ou n’importe quel autre terminal, comme par exemple urxvt). Et grâce à ça il supporte l’auto-complétition et il sauvegarde tout dans un historique. Il est facile de configurer son gestionnaire de fenêtres pour l’utiliser avec un raccourcis. C’est ce que nous allons voir dans ce billet.
Ce programme a été écrit par Henning Bekel et posté dans le forum d’Archlinux. Il a tout de suite été adopté :D
Installation
Rendez vous dans la sourceforge du projet et téléchargez la source. L’installation est simple :
$ tar vxf bashrun-0.11.tar.gz $ cd bashrun-0.11/ $ su -c 'sh install.sh'
Les utilisateurs d’Archlinux peuvent installer le paquet depuis le dépôt.
Configuration
La configuration du logiciel se fait dans ~/.config/bashrun/rc . Vous pouvez y définir le terminal à utiliser, le nom du fichier historique etc. Configurons le maintenant pour Openbox et Pekwm.
Openbox
Mise en place du raccourci clavier
À l’intérieur du fichier rc.xml après la balise <keyboard> on met ceci pour lancer bashrun avec Alt+F2 :
<keybind key="A-F2"> <action name="Execute"> <startupnotify> <enabled>true</enabled> <name>bashrun</name> </startupnotify> <command>bashrun</command> </action> </keybind>
Si vous voulez enlever les décorations de fenêtre de bashrun
À l’intérieur du fichier rc.xml après la balise <applications> on met ceci :
<application name="bashrun"> <decor>no</decor> <focus>yes</focus> <skip_pager>yes</skip_pager> <layer>above</layer> </application>
Pekwm
Mise en place du raccourci clavier
La manip’ se fait dans le fichier ~/.pekwm/keys, pour lancer l’application avec Super+R par exemple, mettez après Global {
KeyPress = "Mod4 R" { Actions = "Exec bashrun" }
Si vous voulez enlever les décorations de fenêtre de bashrun
La manip’ se fait dans le fichier ~/.pekwm/autoproperties, mettez ceci :
Property = "^bashrun,^XTerm" { ApplyOn = "Start New" Border = "False"; Titlebar = "False" Sticky = "True" }
Si vous n’utilisez pas Xterm pour bashrun, changer le code en conséquence.






Visit My Website
May 7, 2009
Permalink
dhoko said:
Ah un lanceur, cool je le prends et de suite vais l’installer, ça évite de lancer xterm :)
Visit My Website
May 7, 2009
Permalink
p4bl0 said:
J’utilise gmrun pour ça, il est dans les repos de pas mal de distrib. Par contre je trouve que A-F2 c’est chiant comme raccourci. Mon Openbox est configuré pour lancer gmrun avec W-x (dans l’esprit du M-x de Emacs).
Visit My Website
May 7, 2009
Permalink
Jérôme M. said:
@p4bl0 : C’était juste un exemple :), personnellement j’utilise super+r
Visit My Website
May 8, 2009
Permalink
Henning said:
Jérôme, merci beaucoup pour sa article…
My french is very rusty, so I hope you don’t mind that I comment in english. So again, thanks for writing this article about my program. I’ll add your pekwm instructions to the FAQ, if you don’t mind.
I noticed two things:
« ou n’importe quel autre shell que vous utilisé) » — This seems to say « it’s not important which other shell you use », which would not be correct. Bashrun is for the bash shell only, although you can use it with different terminals, which i assume you meant.
Also, the config file is ~/.config/bashrun/rc now (~/.bashrunrc was only used in early versions)
Apart from that it’s a nice and comprehensive article, and I enjoyed reading it. Thanks again,
Henning
Visit My Website
May 8, 2009
Permalink
Caldera said:
Super ce lanceur d’application ultra light, je préfère à « gmrun ». De plus il s’intègre à merveille avec Pekwm :)
Visit My Website
May 8, 2009
Permalink
Tux-planet said:
Très intéressant.
Merci
Visit My Website
May 8, 2009
Permalink
Jérôme M. said:
@Henning : No problem my friend you can talk english if you want. I love your program so that’s why I want to show its power to everybody :)
And thanks to correct my mistakes, I’ll change my post :)
@Caldera : Oui il est excellent avec pekwm :D
@Tux-planet : De rien.
Visit My Website
May 15, 2009
Permalink
froli said:
Je tiens à préciser que bashrun est maintenant dans les dépôts d’Arch! :)
@Henning: Even if your default shell is Zsh (by exemple) bashrun will use bash, without any problems.
Visit My Website
October 28, 2009
Permalink
valentin2105 said:
Bonjour,
J’ai installer Bashrun via pacman et quand je lance une application, Bashrun reste ouvert, et si je le ferme, il ferme l’application.
Enfaite il fais comme si il était un mini-xterm.
C’est bizarre, sous Ubuntu, il ne me fesais pas cela .
comment régler ceci ?
PS: Comment avoir Urxvt sous Arch ?
Visit My Website
October 28, 2009
Permalink
Henning said:
@valentin2105: Bonjour,
This shouldn’t happen, maybe you have an error in your config file, or something else is broken.
What happens if you use a larger terminal size (see .config/bashrun/rc, SMALL_COMLUMNS/LINES) and start from the terminal via bashrun –debug? Any error messages?
Also, feel free to mail me directly, I’m always willing to provide support… (see the manual page for my email address)
Btw, the urxvt package for arch is called rxvt-unicode, if that’s what you’re asking.