• Home
  • Archives
  • À propos
  • Sitemap
  • Contact
Subscribe: Posts | Comments | E-mail
  • linuxSoftware is like sex, it's better when it's free
  • serveur
  • tutoriel
  • wallpapers

Phollow.me

Posted on May 7, 2009 - by Jérôme M.

Bashrun: un lanceur simple et efficace

linux

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.

bashrun

bashrun

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.

This entry was posted on Thursday, May 7th, 2009 at 21:48 and is filed under linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

10 Comments

We'd love to hear yours!



  1. 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 :)

    Reply


  2. 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).

    Reply


  3. Visit My Website

    May 7, 2009

    Permalink

    Jérôme M. said:


    @p4bl0 : C’était juste un exemple :), personnellement j’utilise super+r

    Reply


  4. 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

    Reply


  5. 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 :)

    Reply


  6. Visit My Website

    May 8, 2009

    Permalink

    Tux-planet said:


    Très intéressant.
    Merci

    Reply


  7. 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.

    Reply


  8. 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.

    Reply


  9. 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 ?

    Reply


  10. 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.

    Reply


Leave a Reply


Here's your chance to speak.

Cliquer ici pour annuler la réponse.

  1. Name (required)

    Mail (required)

    Website

    Message

  • Ad Ad Ad Ad
  • Search

  • Blogoliste

    • Antoine Guiral
    • Blog Jaune
    • Colibri
    • Cyrille Borne
    • Devil505
    • Divarvel
    • eGainMoney
    • FredZone
    • Ichigo
    • Jonasluthi.com
    • La pomme croquée
    • Lyricis
    • Mind Overflow
    • Planet Libre
    • SckyzO
    • Tadpu !
    • Tux Planet
    • Tuxargon
    • Uselink
    • Youyouk
  • Archives

    • mars 2010
    • février 2010
    • janvier 2010
    • décembre 2009
    • novembre 2009
    • octobre 2009
    • septembre 2009
    • août 2009
    • juillet 2009
    • juin 2009
    • mai 2009
    • avril 2009
    • mars 2009
    • février 2009
    • janvier 2009
    • décembre 2008
    • novembre 2008
    • octobre 2008
© 2008 Phollow.me - I am the visionaire, phollow me if you dare.
The Papercut theme by WooThemes - Premium Wordpress Themes