Browse Source

Nerd fonts

master
Geoffrey Frogeye 5 months ago
parent
commit
68298bf3f1
Signed by: geoffrey GPG Key ID: C72403E7F82E6AD8
  1. 2
      config/Xresources/urxvt
  2. 2
      config/Xresources/xterm
  3. 24
      config/alacritty/alacritty.yml.j2
  4. 19
      config/automatrop/roles/desktop_environment/tasks/main.yml
  5. 1
      config/automatrop/roles/vim/templates/pluginlist.j2
  6. 2
      config/lemonbar/display.py
  7. 2
      config/lemonbar/pip.py
  8. 2
      config/polybar/config

2
config/Xresources/urxvt

@ -22,7 +22,7 @@ URxvt*scrollBar: false
! Font declaration
URxvt.font: xft:DejaVu Sans Mono for Powerline:size=12:antialias=true,xft:Twemoji:size=12:antialias=true,xft:symbola:size=12:minspace=False
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12:antialias=true,xft:Twemoji:size=12:antialias=true,xft:symbola:size=12:minspace=False
! Font spacing
URxvt.letterSpace: 0

2
config/Xresources/xterm

@ -1,4 +1,4 @@
xterm*faceName : DejaVu Sans Mono for Powerline:size=12:antialias=true
xterm*faceName : DejaVuSansMono Nerd Font Mono:size=12:antialias=true
xterm*dynamicColors: true
xterm*utf8: 2
xterm*eightBitInput: true

24
config/alacritty/alacritty.yml.j2

@ -105,50 +105,50 @@ window:
# Font configuration
font:
# Normal (roman) font face
#normal:
normal:
# Font family
#
# Default:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
#family: monospace
family: DejaVuSansMono Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Regular
style: Regular
# Bold font face
#bold:
bold:
# Font family
#
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
family: DejaVuSansMono Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Bold
style: Bold
# Italic font face
#italic:
italic:
# Font family
#
# If the italic family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
family: DejaVuSansMono Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Italic
style: Oblique
# Bold italic font face
#bold_italic:
bold_italic:
# Font family
#
# If the bold italic family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
family: DejaVuSansMono Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Bold Italic
style: Bold Oblique
# Point size
size: 12.0

19
config/automatrop/roles/desktop_environment/tasks/main.yml

@ -12,22 +12,27 @@
- ".config/tridactyl/themes"
# Download fonts
- name: Download terminal fonts
- name: Download Nerd fonts
get_url:
url: "http://raw.githubusercontent.com/powerline/fonts/master/DejaVuSansMono/{{ item | urlencode }}"
dest: "{{ ansible_user_dir }}/.local/share/fonts/{{ item }}"
url: "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/DejaVuSansMono/{{ item.folder }}/complete/{{ item.filename | urlencode }}"
dest: "{{ ansible_user_dir }}/.local/share/fonts/{{ item.filename }}"
mode: "u=rw,g=r,o=r"
loop:
- DejaVu Sans Mono Bold for Powerline.ttf
- DejaVu Sans Mono Bold Oblique for Powerline.ttf
- DejaVu Sans Mono for Powerline.ttf
- DejaVu Sans Mono Oblique for Powerline.ttf
- filename: DejaVu Sans Mono Bold Nerd Font Complete Mono.ttf
folder: Bold
- filename: DejaVu Sans Mono Bold Oblique Nerd Font Complete Mono.ttf
folder: Bold-Italic
- filename: DejaVu Sans Mono Nerd Font Complete Mono.ttf
folder: Regular
- filename: DejaVu Sans Mono Oblique Nerd Font Complete Mono.ttf
folder: Italic
- name: Download icon fonts
get_url:
url: "https://raw.githubusercontent.com/FortAwesome/Font-Awesome/a8386aae19e200ddb0f6845b5feeee5eb7013687/fonts/fontawesome-webfont.ttf"
dest: "{{ ansible_user_dir }}/.local/share/fonts/fontawesome-webfont.ttf"
mode: "u=rw,g=r,o=r"
# TODO Either replace with ForkAwesome or Nerd Fonts
- name: Install python dependencies for lemonbar
pip:

1
config/automatrop/roles/vim/templates/pluginlist.j2

@ -10,6 +10,7 @@
" Theming
{{ use_plugin('base16') }}
{{ use_plugin('airline') }}
{{ use_plugin('devicons') }}
" Goto utilities
{{ use_plugin('fzf') }}

2
config/lemonbar/display.py

@ -54,7 +54,7 @@ class Bar:
"""
# Constants
FONTS = ["DejaVu Sans Mono for Powerline", "Font Awesome"]
FONTS = ["DejaVuSansMono Nerd Font Mono", "Font Awesome"]
FONTSIZE = 10
@staticmethod

2
config/lemonbar/pip.py

@ -13,7 +13,7 @@ import i3ipc
import difflib
# Constants
FONT = "DejaVu Sans Mono for Powerline"
FONT = "DejaVuSansMono Nerd Font Mono"
# TODO Update to be in sync with base16
thm = [

2
config/polybar/config

@ -53,7 +53,7 @@ module-margin-right = 1
font-0 = "Font Awesome:size=10;0"
font-1 = "DejaVu Sans:size=10;0"
font-2 = "DejaVu Sans Mono for Powerline:pixelsize=10;0"
font-2 = "DejaVuSansMono Nerd Font Mono:pixelsize=10;0"
modules-left = i3

Loading…
Cancel
Save