-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added JetBrainsMono Nerd Font (#113)
For improved support for icons in console output.
- Loading branch information
Showing
9 changed files
with
122 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
--- | ||
# The position of the dockbar | ||
xdesktop_dock_position: LEFT | ||
|
||
# Nerd Font version number | ||
xdesktop_nerd_font_version: '2.1.0' | ||
|
||
# The SHA256 of the Nerd Font redistributable package | ||
xdesktop_nerd_font_redis_sha256sum: '842013fa44b6896d4eb91635a81ef75244d78d7f61ff866c9dfd3315a67788cd' | ||
|
||
# Directory to store files downloaded | ||
xdesktop_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
--- | ||
# handlers file for xdesktop | ||
- name: 'xdesktop: apply glib schemas changes' | ||
become: yes | ||
command: '/usr/bin/glib-compile-schemas {{ xdesktop_glib_schemas_directory }}' | ||
|
||
- name: update font-cache | ||
become: yes | ||
command: fc-cache -fv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
- import_tasks: gnome-desktop.yml | ||
|
||
- import_tasks: accessories.yml | ||
|
||
- import_tasks: nerd-font.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
- name: create download directory | ||
file: | ||
state: directory | ||
mode: 'u=rwx,go=rx' | ||
dest: '{{ xdesktop_download_dir }}' | ||
|
||
- name: download Nerd Font | ||
get_url: | ||
url: '{{ xdesktop_nerd_font_redis_url }}' | ||
checksum: 'sha256:{{ xdesktop_nerd_font_redis_sha256sum }}' | ||
dest: '{{ xdesktop_download_dir }}/{{ xdesktop_nerd_font_local_filename }}' | ||
force: no | ||
mode: 'u=rw,go=r' | ||
|
||
- name: create font directory | ||
become: yes | ||
file: | ||
state: directory | ||
mode: 'u=rwx,g=rwxs,o=rx' | ||
dest: '{{ xdesktop_font_install_directory }}' | ||
|
||
- name: install Nerd Font | ||
become: yes | ||
unarchive: | ||
src: '{{ xdesktop_download_dir }}/{{ xdesktop_nerd_font_local_filename }}' | ||
remote_src: yes | ||
dest: '{{ xdesktop_font_install_directory }}' | ||
include: '{{ xdesktop_nerd_font_install_files }}' | ||
mode: 'ug=rw,o=r' | ||
owner: root | ||
group: staff | ||
notify: update font-cache | ||
|
||
- name: write monospace font config | ||
become: yes | ||
template: | ||
src: monospace_font.gschema.override.j2 | ||
dest: '{{ xdesktop_glib_schemas_directory }}/20_ansible_monospace_font.gschema.override' | ||
owner: root | ||
group: root | ||
mode: 'u=rw,go=r' | ||
notify: 'xdesktop: apply glib schemas changes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{{ ansible_managed | comment }} | ||
|
||
[org.gnome.desktop.interface:ubuntu] | ||
monospace-font-name='{{ xdesktop_monospace_font_name }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,48 @@ | ||
--- | ||
# Directory where GLib schemas are located | ||
xdesktop_glib_schemas_directory: /usr/share/glib-2.0/schemas | ||
|
||
# Directory where local fonts are installed | ||
xdesktop_font_install_directory: /usr/local/share/fonts | ||
|
||
# Mirror to download the Nerd Font from | ||
xdesktop_nerd_font_mirror: 'https://github.com/ryanoasis/nerd-fonts/releases/download/v{{ xdesktop_nerd_font_version }}' | ||
|
||
# Name of the default monospace font name | ||
xdesktop_monospace_font_name: 'JetBrainsMono Nerd Font Mono 12' | ||
|
||
# File name of the Nerd Font redistributable package | ||
xdesktop_nerd_font_redis_filename: 'JetBrainsMono.zip' | ||
|
||
# File name of the Nerd Font local package | ||
xdesktop_nerd_font_local_filename: 'JetBrainsMono_{{ xdesktop_nerd_font_version }}.zip' | ||
|
||
# The files to install from the Nerd Font package | ||
xdesktop_nerd_font_install_files: | ||
- 'JetBrains Mono Extra Bold Nerd Font Complete.ttf' | ||
- 'JetBrains Mono Regular Nerd Font Complete.ttf' | ||
- 'JetBrains Mono Italic Nerd Font Complete.ttf' | ||
- 'JetBrains Mono Medium Medium Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono ExtraBold ExtBd Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono Medium Italic Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono Medium Italic Nerd Font Complete.ttf' | ||
- 'JetBrains Mono ExtraBold ExtBd Nerd Font Complete.ttf' | ||
- 'JetBrains Mono Medium Med Ita Nerd Font Complete.ttf' | ||
- 'JetBrains Mono ExtBd Ita Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono ExtBd Ita Nerd Font Complete.ttf' | ||
- 'JetBrains Mono Medium Med Ita Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono Bold Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono Medium Nerd Font Complete.ttf' | ||
- 'JetBrains Mono ExtraBold ExBd I Nerd Font Complete.ttf' | ||
- 'JetBrains Mono Bold Italic Nerd Font Complete.ttf' | ||
- 'JetBrains Mono Medium Medium Nerd Font Complete.ttf' | ||
- 'JetBrains Mono Italic Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono Bold Italic Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono Medium Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono Extra Bold Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono ExtraBold ExBd I Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono Regular Nerd Font Complete Mono.ttf' | ||
- 'JetBrains Mono Bold Nerd Font Complete.ttf' | ||
|
||
# URL of the Nerd Font redistributable package | ||
xdesktop_nerd_font_redis_url: '{{ xdesktop_nerd_font_mirror }}/{{ xdesktop_nerd_font_redis_filename }}' |