[CONTOURNE] Augmenter taille police xterm définitivement

Bonsoir à tous !

J’aimerais augmenter la taille de police de mes xterm.

Existe-t-il un fichier de conf qui garderait les paramètres du genre xterm -fa "Monospace" -fs 11 -lc définitivement ?

Merci d’avance et bonne soirée :slightly_smiling:

Il me semble que ça se fait dans /etc/X11/Xressources, il faut voir le man

OK, je regarde et je dépose la solution ici…

Merci :slightly_smiling:

J’y arrive pas :frowning:

J’ai trouvé un fichier /etc/X11/app-defaults/Xterm dans lequel figure plusieurs tailles de police et j’ai beau le modifier, l’enregistrer et lancer un xterm: rien ne change.

En voici le contenu:

[code]! $XTermId: XTerm.ad,v 1.85 2007/11/26 18:42:37 tom Exp $

*saveLines: 1024

SimpleMenuBackingStore: NotUseful
SimpleMenumenuLabel.font: -adobe-helvetica-bold-r-normal–-120-----iso8859-
SimpleMenumenuLabel.vertSpace: 100
SimpleMenuHorizontalMargins: 16
SimpleMenuSme.height: 16

SimpleMenuCursor: left_ptr

mainMenu.Label: Main Options
mainMenutoolbar
Label: Toolbar
mainMenusecurekbdLabel: Secure Keyboard
mainMenuallowsends
Label: Allow SendEvents
mainMenuredrawLabel: Redraw Window
mainMenulogging
Label: Log to File
mainMenuprintLabel: Print Window
mainMenuprint-redir
Label: Redirect to Printer
mainMenu8-bit controlLabel: 8-Bit Controls
mainMenubackarrow key
Label: Backarrow Key (BS/DEL)
mainMenunum-lockLabel: Alt/NumLock Modifiers
mainMenualt-esc
Label: Alt Sends Escape
mainMenumeta-escLabel: Meta Sends Escape
mainMenudelete-is-del
Label: Delete is DEL
mainMenuoldFunctionKeysLabel: Old Function-Keys
mainMenusunFunctionKeys
Label: Sun Function-Keys
mainMenusunKeyboardLabel: VT220 Keyboard
mainMenuhpFunctionKeys
Label: HP Function-Keys
mainMenuscoFunctionKeysLabel: SCO Function-Keys
mainMenutcapFunctionKeys
Label: Termcap Function-Keys
mainMenususpendLabel: Send STOP Signal
mainMenucontinue
Label: Send CONT Signal
mainMenuinterruptLabel: Send INT Signal
mainMenuhangup
Label: Send HUP Signal
mainMenuterminateLabel: Send TERM Signal
mainMenukill
Label: Send KILL Signal
mainMenuquit*Label: Quit

vtMenu.Label: VT Options
vtMenuscrollbar
Label: Enable Scrollbar
vtMenujumpscrollLabel: Enable Jump Scroll
vtMenureversevideo
Label: Enable Reverse Video
vtMenuautowrapLabel: Enable Auto Wraparound
vtMenureversewrap
Label: Enable Reverse Wraparound
vtMenuautolinefeedLabel: Enable Auto Linefeed
vtMenuappcursor
Label: Enable Application Cursor Keys
vtMenuappkeypadLabel: Enable Application Keypad
vtMenuscrollkey
Label: Scroll to Bottom on Key Press
vtMenuscrollttyoutputLabel: Scroll to Bottom on Tty Output
vtMenuallow132
Label: Allow 80/132 Column Switching
vtMenukeepSelectionLabel: Keep Selection
vtMenuselectToClipboard
Label: Select to Clipboard
vtMenucursesemulLabel: Enable Curses Emulation
vtMenuvisualbell
Label: Enable Visual Bell
vtMenubellIsUrgentLabel: Enable Bell Urgency
vtMenupoponbell
Label: Enable Pop on Bell
vtMenucursorblinkLabel: Enable Blinking Cursor
vtMenutiteInhibit
Label: Enable Alternate Screen Switching
vtMenuactiveiconLabel: Enable Active Icon
vtMenusoftreset
Label: Do Soft Reset
vtMenuhardresetLabel: Do Full Reset
vtMenuclearsavedlines
Label: Reset and Clear Saved Lines
vtMenutekshowLabel: Show Tek Window
vtMenutekmode
Label: Switch to Tek Mode
vtMenuvthideLabel: Hide VT Window
vtMenualtscreen
Label: Show Alternate Screen

fontMenu.Label: VT Fonts
fontMenufontdefault
Label: Default
fontMenufont1Label: Unreadable
VT100.font1: nil2
IconFont: nil2
fontMenufont2
Label: Tiny
VT100.font2: 5x7
fontMenufont3
Label: Small
VT100.font3: 6x10
fontMenufont4
Label: Medium
VT100.font4: 7x13
fontMenufont5
Label: Large
VT100.font5: 9x15
fontMenufont6
Label: Huge
VT100.font6: 10x20
fontMenufontescape
Label: Escape Sequence
fontMenufontsel
Label: Selection
!fontescape and fontsel overridden by application
fontMenufont-linedrawing
Label: Line-Drawing Characters
fontMenufont-doublesizeLabel: Doublesized Characters
fontMenufont-loadable
Label: VT220 Soft Fonts
fontMenurender-fontLabel: TrueType Fonts
fontMenuutf8-mode
Label: UTF-8
fontMenuutf8-title*Label: UTF-8 Titles

*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal–8-80-75-75-c-50-iso10646-1
*VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed–13-120-75-75-c-60-iso10646-1
*VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal–14-130-75-75-c-70-iso10646-1
*VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal–13-120-75-75-c-80-iso10646-1
*VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal–18-120-100-100-c-90-iso10646-1
*VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal–20-200-75-75-c-100-iso10646-1

tekMenu.Label: Tek Options
tekMenutektextlarge
Label: Large Characters
tekMenutektext2Label: #2 Size Characters
tekMenutektext3
Label: #3 Size Characters
tekMenutektextsmallLabel: Small Characters
tekMenutekpage
Label: PAGE
tekMenutekresetLabel: RESET
tekMenutekcopy
Label: COPY
tekMenuvtshowLabel: Show VT Window
tekMenuvtmode
Label: Switch to VT Mode
tekMenutekhide*Label: Hide Tek Window

tek4014fontLarge: 9x15
tek4014font2: 8x13
tek4014font3: 6x13
tek4014fontSmall: 6x10

! Debian package customizations follow.
*backarrowKeyIsErase: true
*ptyInitialErase: true

! If xterm is built with a toolbar, the widget hierarchy looks like this,
! showing widget name / class names. The complete menu hierarchy is built
! at startup because it is needed to make the layout work for the menubar:
!
! xterm/XTerm
! form/Form
! menubar/Box
! mainMenuButton/MenuButton
! mainMenu/SimpleMenu
! menuLabel/SmeBSB
! toolbar/SmeBSB
! …
! vtMenu/SimpleMenu
! menuLabel/SmeBSB
! scrollbar/SmeBSB
! …
! fontMenu/SimpleMenu
! menuLabel/SmeBSB
! fontdefault/SmeBSB
! …
! tekMenu/SimpleMenu
! menuLabel/SmeBSB
! fontdefault/SmeBSB
! …
! vt100/VT100
! tektronix/TopLevelShell
! shellext/VendorShellExt
! tek4014/Tek4014
!
! If built without a toolbar, the widget hierarchy is simpler, because there
! is no form, and the popup menu widgets are created only when they are first
! used.
!
! xterm/XTerm
! shellext/VendorShellExt
! mainMenu/SimpleMenu
! menuLabel/SmeBSB
! …
! …
! vt100/VT100
! tektronix/TopLevelShell
! shellext/VendorShellExt
! tek4014/Tek4014
!
! A more complete list of the widget/class names can be obtained using editres
! to dump a file. Some widget names are not available until the corresponding
! menu has been created.

! These resources reduce space around the menubar, by eliminating padding in
! the enclosing form (Thickness) and the border of the Box which represents
! the menubar widget.
*form.Thickness: 0
*menubar.borderWidth: 0

! If we wanted to eliminate the border of the popup menus, we could do this
! instead, since they are children of the menubar:
!menubarborderWidth: 0

! Eliminate the border of the buttons in the menubar, so the only line around
! the text is for the highlighted button:
MenuButtonborderWidth: 0

! Set a border for the menus to make them simpler to distinguish against the
! vt100 widget:
SimpleMenuborderWidth: 2

! Here is a pattern that is useful for double-clicking on a URL:
!*charClass: 33:48,35:48,37-38:48,43-47:48,58:48,61:48,63-64:48,95:48,126:48
!
! Alternatively,
!*on2Clicks: regex [[:alpha:]]+://([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+[/code]

Une idée ?

p’tit up…

Pourquoi ne pas modifier simplement la manière dont tu lances xterm. Par exemple si tu utilises un raccourci clavier, tu lui passes les paramètres adéquats.
Exemple sous fluxbox:

poiuy@debian:~$ grep xterm .fluxbox/keys Mod1 x :ExecCommand xterm -fa "Monospace" -fs 11 -lc

Salut!

Les grands esprits se rencontrent…

J’ai en effet modifié mon .awesomerc en passant les bons paramètres à la commande de lancement de xterm.

J’ai aussi modifié le bashrc en créant un alias pour qu’il me lance xterm avec les mêmes paramètres.

Mais à vrai dire, je trouve que ce n’est pas très propre et j’aurais bien voulu jouer directement sur la config de xterm pour qu’il garde la bonne taille de caractères peu importe d’où je le lance…

Enfin, c’est pas trop grave, je passe le sujet en “contourné”.

Merci pour ta suggestion :slightly_smiling:

Utilises

$ xterm -fi
pour tester

et

$ xfontsel

pour choisir ta fonte. Puis après tu modifies les lignes

*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1 *VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1 *VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1 *VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1 *VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1 *VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1 du fichier XTerm

Merci fran.b

J’avais essayé xfontsel, mais j’ai pas compris que c’était juste une aide au choix de police :blush:

Je suppose que je peux changer uniquement la ligne :

et que c’est celle qui est prise par défaut à l’ouverture d’un xterm ?!

Dès que je rentre de mon cours du soir, j’essaye ça et je vous tiens au courant. :slightly_smiling: