my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
7.4 KiB

3 years ago
  1. # Recommended font: Meslo Nerd Font patched for Powerlevel10k
  2. Gorgeous monospace font designed by Jim Lyles for Bitstream, customized by the same for Apple,
  3. further customized by André Berg, and finally patched by yours truly with customized scripts
  4. originally developed by Ryan L McIntyre of Nerd Fonts. Contains all glyphs and symbols that
  5. Powerlevel10k may need. Battle-tested in dozens of different terminals on all major operating
  6. systems.
  7. *FAQ*: [How was the recommended font created?](README.md#how-was-the-recommended-font-created)
  8. ## Automatic font installation
  9. If you are using iTerm2 or Termux, `p10k configure` can install the recommended font for you.
  10. Simply answer `Yes` when asked whether to install *Meslo Nerd Font*.
  11. If you are using a different terminal, proceed with manual font installation. 👇
  12. ## Manual font installation
  13. 1. Download these four ttf files:
  14. - [MesloLGS NF Regular.ttf](
  15. https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf)
  16. - [MesloLGS NF Bold.ttf](
  17. https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf)
  18. - [MesloLGS NF Italic.ttf](
  19. https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf)
  20. - [MesloLGS NF Bold Italic.ttf](
  21. https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf)
  22. 1. Double-click on each file and click "Install". This will make `MesloLGS NF` font available to all
  23. applications on your system.
  24. 1. Configure your terminal to use this font:
  25. - **iTerm2**: Type `p10k configure` and answer `Yes` when asked whether to install
  26. *Meslo Nerd Font*. Alternatively, open *iTerm2 → Preferences → Profiles → Text* and set *Font* to
  27. `MesloLGS NF`.
  28. - **Apple Terminal**: Open *Terminal → Preferences → Profiles → Text*, click *Change* under *Font*
  29. and select `MesloLGS NF` family.
  30. - **Hyper**: Open *Hyper → Edit → Preferences* and change the value of `fontFamily` under
  31. `module.exports.config` to `MesloLGS NF`.
  32. - **Visual Studio Code**: Open *File → Preferences → Settings* (PC) or
  33. *Code → Preferences → Settings* (Mac), enter `terminal.integrated.fontFamily` in the search box at
  34. the top of *Settings* tab and set the value below to `MesloLGS NF`.
  35. Consult [this screenshot](
  36. https://raw.githubusercontent.com/romkatv/powerlevel10k-media/389133fb8c9a2347929a23702ce3039aacc46c3d/visual-studio-code-font-settings.jpg)
  37. to see how it should look like or see [this issue](
  38. https://github.com/romkatv/powerlevel10k/issues/671) for extra information.
  39. - **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the
  40. selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select
  41. `MesloLGS NF Regular`.
  42. - **Konsole**: Open *Settings → Edit Current Profile → Appearance*, click *Select Font* and select
  43. `MesloLGS NF Regular`.
  44. - **Tilix**: Open *Tilix → Preferences* and click on the selected profile under *Profiles*. Check
  45. *Custom font* under *Text Appearance* and select `MesloLGS NF Regular`.
  46. - **Windows Console Host** (the old thing): Click the icon in the top left corner, then
  47. *Properties → Font* and set *Font* to `MesloLGS NF`.
  48. - **Windows Terminal** by Microsoft (the new thing): Open `settings.json` (<kbd>Ctrl+Shift+,</kbd>),
  49. search for `fontFace` and set the value to `MesloLGS NF` for every profile. If you don't find
  50. `fontFace`, add it under *profiles → defaults*. See [this settings file](
  51. https://raw.githubusercontent.com/romkatv/dotfiles-public/aba0e6c4657d705ed6c344d700d659977385f25c/dotfiles/microsoft-terminal-settings.json)
  52. for example.
  53. - **IntelliJ** (and other IDEs by Jet Brains): Open *IDE → Edit → Preferences → Editor →
  54. Color Scheme → Console Font*. Select *Use console font instead of the default* and set the font
  55. name to `MesloLGS NF`.
  56. - **Termux**: Type `p10k configure` and answer `Yes` when asked whether to install
  57. *Meslo Nerd Font*.
  58. - **Blink**: Type `config`, go to *Appearance*, tap *Add a new font*, tap *Open Gallery*, select
  59. *MesloLGS NF.css*, tap *import* and type `exit` in the home view to reload the font.
  60. - **Terminus**: Open *Settings → Appearance* and set *Font* to `MesloLGS NF`.
  61. - **Terminator**: Open *Preferences* using the context menu. Under *Profiles* select the *General*
  62. tab (should be selected already), uncheck *Use the system fixed width font* (if not already)
  63. and select `MesloLGS NF Regular`. Exit the Preferences dialog by clicking *Close*.
  64. - **Guake**: Right Click on an open terminal and open *Preferences*. Under *Appearance*
  65. tab, uncheck *Use the system fixed width font* (if not already) and select `MesloLGS NF Regular`.
  66. Exit the Preferences dialog by clicking *Close*.
  67. - **MobaXterm**: Open *Settings**Configuration**Terminal* → (under *Terminal look and feel*)
  68. and change *Font* to `MesloLGS NF`.
  69. - **Asbrú Connection Manager**: Open *Preferences → Local Shell Options → Look and Feel*, enable
  70. *Use these personal options* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`.
  71. To change the font for the remote host connections, go to *Preferences → Terminal Options →
  72. Look and Feel* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`.
  73. - **WSLtty**: Right click on an open terminal and then on *Options*. In the *Text* section, under
  74. *Font*, click *"Select..."* and set Font to `MesloLGS NF Regular`.
  75. - **Yakuake**: Click *≡**Manage Profiles**New**Appearance*. Click *Choose* next to the
  76. *Font* dropdown, select `MesloLGS NF` and click *OK*. Click *OK* to save the profile. Select the
  77. new profile and click *Set as Default*.
  78. - **Alacritty**: Create or open `~/.config/alacritty/alacritty.yml` and add the following section
  79. to it:
  80. ```yaml
  81. font:
  82. normal:
  83. family: "MesloLGS NF"
  84. ```
  85. - **kitty**: Create or open `~/.config/kitty/kitty.conf` and add the following line to it:
  86. ```text
  87. font_family MesloLGS NF
  88. ```
  89. Restart kitty by closing all sessions and opening a new session.
  90. - **puTTY**: Set *Window**Appearance**Font* to `MesloLGS NF`. Requires puTTY
  91. version >= 0.75.
  92. - **WezTerm**: Create or open `$HOME/.config/wezterm/wezterm.lua` and add the following:
  93. ```lua
  94. local wezterm = require 'wezterm';
  95. return {
  96. font = wezterm.font("MesloLGS NF"),
  97. }
  98. ```
  99. If the file already exists, only add the line with the font to the existing return.
  100. Also add the first line if it is not already present.
  101. - **urxvt**: Create or open `~/.Xresources` and add the following line to it:
  102. ```text
  103. URxvt.font: xft:MesloLGS NF:size=11
  104. ```
  105. You can adjust the font size to your preference. After changing the config run
  106. `xrdb ~/.Xresources` to reload it. The new config is applied to all new terminals.
  107. - **xterm**: Create or open `~/.Xresources` and add the following line to it:
  108. ```text
  109. xterm*faceName: MesloLGS NF
  110. ```
  111. After changing the config run `xrdb ~/.Xresources` to reload it. The new config is applied to
  112. all new terminals.
  113. 1. Run `p10k configure` to generate a new `~/.p10k.zsh`. The old config may work
  114. incorrectly with the new font.
  115. _Using a different terminal and know how to set the font for it? Share your knowledge by sending a
  116. PR to expand the list!_