Skip to content
tsujan edited this page Dec 19, 2023 · 12 revisions

Welcome to the QTerminal Wiki!

FAQ

How to set monospace?

Having monospace defined is important for some apps, especially terminal emulators and code editors.

Supposing that you prefer DejaVu for monospace (replace it with another font otherwise), create ~/.config/fontconfig/conf.d/0-mono.conf as:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <!-- To fix monospace: -->
 <alias>
  <family>monospace</family>
  <prefer>
   <family>DejaVu Sans Mono</family>
  </prefer>
 </alias>
 <alias>
  <family>serif</family>
  <prefer>
   <family>DejaVu Serif</family>
  </prefer>
 </alias>
 <alias>
  <family>sans-serif</family>
  <prefer>
   <family>DejaVu Sans</family>
  </prefer>
 </alias>
</fontconfig>

Colored emojis are in black and white. How to fix it?

Some fontconfig tricks might be needed to get colored emojis (→ https://github.com/lxqt/qterminal/issues/627).

Supposing that you have installed a font like noto-fonts-emoji, create ~/.config/fontconfig/conf.d/0-emoji.conf as:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <!-- For colored emojis: -->
 <match target="pattern">
  <test name="family">
   <string>monospace</string>
  </test>
  <edit mode="append" name="family">
   <string>Noto Color Emoji</string>
  </edit>
 </match>
 <match target="pattern">
  <test name="family">
   <string>serif</string>
  </test>
  <edit mode="append" name="family">
   <string>Noto Color Emoji</string>
  </edit>
 </match>
 <match target="pattern">
  <test name="family">
   <string>sans-serif</string>
  </test>
  <edit mode="append" name="family">
   <string>Noto Color Emoji</string>
  </edit>
 </match>
</fontconfig>

Then, colored emojis will be shown by Qt apps, QTerminal included.

How to disable completely a shortcut?

Press any modifier key in the shortcut field.

Clone this wiki locally