Le 21.12 (mardi) à 13:07, je disais :

> Je cherche une commande X de base, qui au lancement:
> 1. me donnerait la main pour choisir à la souris un rectangle de mon
>    écran par glisser-déposer.
> 2. mettrait dans une variable (où à tout endroit récupérable dans la
>    suite d'un script) la geometry correspondante, genre 795x605+3+2.

Or donc: 

Une commande fait exactement ça, c'est xrectsel. Ça vient avec un
script, ffcast, script permettant de faire du screencast avec ffmpeg.

J'ai réussi ça

$ wget https://github.com/lolilolicon/ffcast/raw/master/xrectsel.c 
--no-check-certificate
$ grep gcc xrectsel.c 
Compile: gcc -Wall -Wextra -o xrectsel xrectsel.c -lX11
$ gcc -Wall -Wextra -o xrectsel xrectsel.c -lX11
$ ./xrectsel 
231x138+347+171

Bref, ça marche! (c)(tm)(patent)(trop rare)

  Références:
  http://ubuntuforums.org/showthread.php?t=1392026&page=4
  http://ubuntuforums.org/showthread.php?t=1392026
  «A: Yes! There is a simple tool called "xrectsel" that you can use to select 
an area of»
  http://ubuntuforums.org/showpost.php?p=9902784&postcount=79
  https://github.com/lolilolicon/ffcast/blob/master/xrectsel.c

Bien cordialement,

-- 
Olivier K
_________________________________
Linux mailing list
[email protected]
http://lists.parinux.org/mailman/listinfo/linux

Répondre à