Nerd fonts

This commit is contained in:
Geoffrey Frogeye 2021-07-04 09:52:16 +02:00
parent 72e54fd8f7
commit 68298bf3f1
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
8 changed files with 30 additions and 24 deletions

View file

@ -22,7 +22,7 @@ URxvt*scrollBar: false
! Font declaration ! 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 ! Font spacing
URxvt.letterSpace: 0 URxvt.letterSpace: 0

View file

@ -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*dynamicColors: true
xterm*utf8: 2 xterm*utf8: 2
xterm*eightBitInput: true xterm*eightBitInput: true

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -53,7 +53,7 @@ module-margin-right = 1
font-0 = "Font Awesome:size=10;0" font-0 = "Font Awesome:size=10;0"
font-1 = "DejaVu Sans: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 modules-left = i3