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
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

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

View file

@ -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

View file

@ -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:

View file

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

View file

@ -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

View file

@ -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 = [

View file

@ -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