|
|
|
@ -12,6 +12,14 @@ $ fc-list | awk -F ":" '{print $1}' | sort -u
|
|
|
|
|
|
|
|
|
|
Comment faire pour visualiser la plénitude des formes de mes fontes ?
|
|
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
|
tth@debian:~/Devel/TetaTricks$ man fontimage
|
|
|
|
|
No manual entry for fontimage
|
|
|
|
|
See 'man 7 undocumented' for help when manual pages are not available.
|
|
|
|
|
tth@debian:~/Devel/TetaTricks$
|
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
|
|
Wtf\index{Wtf} ?
|
|
|
|
|
|
|
|
|
|
%-------------------------------------------------------------------
|
|
|
|
|
\section{Xephyr}
|
|
|
|
@ -74,29 +82,31 @@ protocole de X11. \textsl{Big win, bro !}
|
|
|
|
|
|
|
|
|
|
La démarche d'utilisation n'étant pas immédiate, nous allons
|
|
|
|
|
commencer par un petit exemple : déplacer un Xlogo sur l'écran.
|
|
|
|
|
Et comme un petit script vaut mieux qu'un long discours~:
|
|
|
|
|
|
|
|
|
|
\lstinputlisting[language=sh]{code/move-xlogo.sh}
|
|
|
|
|
|
|
|
|
|
La première étape est le lancement de la cible en arrière-plan.
|
|
|
|
|
La seconde est la récupération de l'indentifiant
|
|
|
|
|
(interne à X11) de la fenêtre concernée.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
|
$ xlogo &
|
|
|
|
|
[3] 2674
|
|
|
|
|
$ WIN=$(xdotool search -name xlogo)
|
|
|
|
|
$ echo $WIN
|
|
|
|
|
69206019
|
|
|
|
|
$
|
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
|
|
Voilà\footnote{en français dans le texte}, nous savons maintenant
|
|
|
|
|
Voilà\footnote{En français dans le texte.}, nous savons maintenant
|
|
|
|
|
à quelle fenêtre causer : par son numéro d'identification.
|
|
|
|
|
Le problême des multiples fenêtres du même nom sera abordé
|
|
|
|
|
ultérieurement.
|
|
|
|
|
|
|
|
|
|
Déplaçons donc notre widget\dots
|
|
|
|
|
ultérieurement. Nous pouvons maintenant déplacer notre widget
|
|
|
|
|
avec vigueur\dots
|
|
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
|
$ xdotool windowmove $WIN 10 10
|
|
|
|
|
$
|
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
|
|
C'est simple, non ?
|
|
|
|
@ -110,6 +120,13 @@ Vous avez pratiqué la \textsl{Xlib} ? Avez-vous aimé ?
|
|
|
|
|
Si vous ne savez pas quoi répondre, vous n'avez pas compris
|
|
|
|
|
la question.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{quote}
|
|
|
|
|
The X protocol C-language Binding (XCB) is a replacement for Xlib
|
|
|
|
|
featuring a small footprint, latency hiding, direct access to the
|
|
|
|
|
protocol, improved threading support, and extensibility.
|
|
|
|
|
\end{quote}
|
|
|
|
|
|
|
|
|
|
%
|
|
|
|
|
% https://xcb.freedesktop.org/tutorial/basicwindowsanddrawing/
|
|
|
|
|
%
|
|
|
|
|