This commit is contained in:
Geoffrey Frogeye 2021-03-21 19:49:01 +01:00
parent ad8aebdc47
commit 60fb7953ba
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
13 changed files with 1402 additions and 6 deletions

View file

@ -0,0 +1,14 @@
- name: xrdb-reload
command: "xrdb -I{{ ansible_env.HOME }} {{ ansible_env.HOME }}/.config/Xresources/main"
- name: i3-reload
command: i3-msg reload
- name: shell-reload
command: "{{ ansible_env.HOME }}/.local/bin/colorSchemeApply"
- name: fzf-reload
shell: "source {{ ansible_env.HOME }}/.local/bin/colorSchemeApplyFzf"
- name: qutebrowser-reload
shell: "! pgrep qutebrowser || qutebrowser :config-source"

View file

@ -0,0 +1,119 @@
# - name: Find Dav configuration folders in password store
# - name: Ensure directories for theme are present
# file:
# state: directory
# path: "{{ ansible_env.HOME }}/{{ item }}"
# with_items:
# - ".config/Xresources"
# - ".config/rofi"
# - ".local/bin"
# - ".config/qutebrowser"
# - ".config/tridactyl/themes"
#
# # Build a single color scheme and template and assign it to a variable
# - base16_builder:
# scheme: "{{ base16_scheme }}"
# template: # This requires https://github.com/mnussbaum/base16-builder-ansible/pull/6
# - i3
# - xresources
# - rofi
# - termux
# - alacritty
# - shell
# - fzf
# - vim
# - qutebrowser
# - tridactyl
# - dunst
# register: base16_schemes
#
# - name: Configure Alacritty
# template:
# src: "{{ ansible_env.HOME }}/.config/alacritty/alacritty.yml.j2"
# dest: "{{ ansible_env.HOME }}/.config/alacritty/alacritty.yml"
# 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
#
# - name: Set base16 theme for Xresources
# copy:
# content: "{{ base16_schemes['schemes'][base16_scheme]['xresources']['xresources']['base16-' + base16_scheme + '-256.Xresources'] }}"
# dest: "{{ ansible_env.HOME }}/.config/Xresources/theme"
# mode: "u+rw,g=r,o=r"
# notify:
# - xrdb-reload
#
# - name: Download base16 theme for qutebrowser
# copy:
# content: "{{ base16_schemes['schemes'][base16_scheme]['qutebrowser']['themes/minimal']['base16-' + base16_scheme + '.config.py'] }}"
# dest: "{{ ansible_env.HOME }}/.config/qutebrowser/theme.py"
# mode: "u+rw,g=r,o=r"
# notify:
# - qutebrowser-reload
#
# - name: Download base16 theme for Tridactyl
# copy:
# content: "{{ base16_schemes['schemes'][base16_scheme]['tridactyl']['base16-' + base16_scheme + '.config.py'] }}"
# # url: "https://raw.githubusercontent.com/bezmi/base16-tridactyl/master/base16-{{ base16_scheme }}.css"
# dest: "{{ ansible_env.HOME }}/.config/tridactyl/themes/theme.css"
# mode: "u+rw,g=r,o=r"
# when: False # Not currently used
#
# - name: Configure i3
# template:
# src: "{{ ansible_env.HOME }}/.config/i3/config.j2"
# dest: "{{ ansible_env.HOME }}/.config/i3/config"
# mode: "u+rw,g=r,o=r"
# notify:
# - i3-reload
#
# - name: Set base16 theme for rofi
# copy:
# content: "{{ base16_schemes['schemes'][base16_scheme]['rofi']['themes']['base16-' + base16_scheme + '.' + item] }}"
# dest: "{{ ansible_env.HOME }}/.config/rofi/theme.{{ item }}"
# mode: "u+rw,g=r,o=r"
# with_items:
# - rasi
# - config
#
# - name: Configure Dunst
# template:
# src: "{{ ansible_env.HOME }}/.config/dunst/dunstrc.j2"
# dest: "{{ ansible_env.HOME }}/.config/dunst/dunstrc"
# mode: "u+rw,g=r,o=r"
#
# - name: Download base16 theme for fzf
# copy:
# content: "{{ base16_schemes['schemes'][base16_scheme]['fzf']['bash']['base16-' + base16_scheme + '.config'] }}"
# dest: "{{ ansible_env.HOME }}/.local/bin/colorSchemeApplyFzf"
# mode: "u+rw,g=r,o=r"
# notify:
# - fzf-reload
#
# - name: Download base16 theme for Termux
# copy:
# content: "{{ base16_schemes['schemes'][base16_scheme]['termux']['colors']['base16-' + base16_scheme + '.properties'] }}"
# dest: "{{ ansible_env.HOME }}/.termux/colors.properties"
# mode: "u+rw,g=r,o=r"
# # TODO Only on Termux
#
# - name: Download base16 theme for shell
# copy:
# content: "{{ base16_schemes['schemes'][base16_scheme]['shell']['script']['base16-' + base16_scheme + '.sh'] }}"
# dest: "{{ ansible_env.HOME }}/.local/bin/colorSchemeApply"
# mode: "u+rwx,g=rx,o=rx"
# notify:
# - shell-reload
# when: False # Not currently used
#
# - name: Set used base16 theme for vim
# copy:
# path: "{{ ansible_env.HOME }}/.config/vim/colorscheme.vim"
# mode: "u+rw,g=r,o=r"
# content: "colorscheme base16-{{ base16_scheme }}"
# when: False # Not currently used
#
# # TODO bar (might change bar in the future, so...)
# # TODO highlight (there IS a template but the colors look different from vim and mostly the same from when there's no config)
# # TODO https://github.com/makuto/auto-base16-theme ? :P

View file

@ -0,0 +1,44 @@
[general]
status_path = "~/.cache/vdirsyncer/status/"
{% for config in configs %}
# CarDAV
[pair geoffrey_contacts]
a = "geoffrey_contacts_local"
b = "geoffrey_contacts_remote"
collections = ["from a", "from b"]
metadata = ["displayname"]
[storage geoffrey_contacts_local]
type = "filesystem"
path = "~/.cache/vdirsyncer/contacts/"
fileext = ".vcf"
[storage geoffrey_contacts_remote]
type = "carddav"
url = "https://cloud.frogeye.fr/remote.php/dav"
username = "geoffrey"
password.fetch = ["command", "sh", "-c", "cat ~/.config/vdirsyncer/pass"]
# CalDAV
[pair geoffrey_calendar]
a = "geoffrey_calendar_local"
b = "geoffrey_calendar_remote"
collections = ["from a", "from b"]
metadata = ["displayname", "color"]
[storage geoffrey_calendar_local]
type = "filesystem"
path = "~/.cache/vdirsyncer/calendars/"
fileext = ".ics"
[storage geoffrey_calendar_remote]
type = "caldav"
url = "https://cloud.frogeye.fr/remote.php/dav"
username = "geoffrey"
password.fetch = ["command", "sh", "-c", "cat ~/.config/vdirsyncer/pass"]
{% endfor %}

View file

@ -0,0 +1 @@
base16_scheme: solarized-dark