Moved some desktop environment stuff to Ansible
This commit is contained in:
parent
fda5b38ddb
commit
4e8681fad0
7 changed files with 36 additions and 24 deletions
|
@ -1,14 +1,38 @@
|
|||
- name: Ensure directories for theme are present
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ ansible_env.HOME }}/{{ item }}"
|
||||
path: "{{ ansible_user_dir }}/{{ item }}"
|
||||
mode: "u=rwx,g=rx,o=rx"
|
||||
with_items:
|
||||
- ".config/Xresources"
|
||||
- ".config/rofi"
|
||||
- ".local/bin"
|
||||
- ".local/share/fonts"
|
||||
- ".config/qutebrowser"
|
||||
- ".config/tridactyl/themes"
|
||||
|
||||
# Download fonts
|
||||
- name: Download terminal fonts
|
||||
get_url:
|
||||
url: "http://raw.githubusercontent.com/powerline/fonts/master/DejaVuSansMono/{{ item | urlencode }}"
|
||||
dest: "{{ ansible_user_dir }}/.local/share/fonts/{{ item }}"
|
||||
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
|
||||
|
||||
- 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"
|
||||
|
||||
- name: Install python dependencies for lemonbar
|
||||
pip:
|
||||
requirements: "{{ ansible_user_dir }}/.dotfiles/config/lemonbar/requirements.txt"
|
||||
|
||||
# Build a single color scheme and template and assign it to a variable
|
||||
- base16_builder:
|
||||
scheme: "{{ base16_scheme }}"
|
||||
|
@ -35,6 +59,8 @@
|
|||
mode: "u+rw,g=r,o=r"
|
||||
# Alacritty has live config reload, so no command to execute
|
||||
# However, it doesn't work with yaml includes, hence the template
|
||||
tags:
|
||||
- color
|
||||
|
||||
- name: Set base16 theme for Xresources
|
||||
copy:
|
||||
|
@ -45,6 +71,7 @@
|
|||
- xrdb-reload
|
||||
tags:
|
||||
- color
|
||||
when: display_server == 'x11'
|
||||
|
||||
- name: Download base16 theme for qutebrowser
|
||||
copy:
|
||||
|
@ -75,6 +102,7 @@
|
|||
- i3-reload
|
||||
tags:
|
||||
- color
|
||||
when: display_server == 'x11'
|
||||
|
||||
- name: Set base16 theme for rofi
|
||||
copy:
|
||||
|
@ -94,6 +122,7 @@
|
|||
mode: "u+rw,g=r,o=r"
|
||||
tags:
|
||||
- color
|
||||
when: display_server == 'x11'
|
||||
|
||||
- name: Download base16 theme for fzf
|
||||
copy:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue