From 84a2906be9749ac1937f52d24d9f5fc80d2447ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 21 Dec 2021 17:25:47 +0100 Subject: [PATCH] rofi: Fix theme definition for newer version I was right the first time? --- .../roles/desktop_environment/tasks/main.yml | 20 ++++++------------- config/rofi/.gitignore | 1 + config/rofi/config.rasi | 3 +-- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/config/automatrop/roles/desktop_environment/tasks/main.yml b/config/automatrop/roles/desktop_environment/tasks/main.yml index 2e80813..31a7f92 100644 --- a/config/automatrop/roles/desktop_environment/tasks/main.yml +++ b/config/automatrop/roles/desktop_environment/tasks/main.yml @@ -6,7 +6,6 @@ with_items: - ".config/Xresources" - ".config/rofi" - - ".local/share/rofi/themes" - ".local/bin" - ".local/share/fonts" - ".config/qutebrowser" @@ -109,23 +108,16 @@ - color when: display_server == 'x11' -- name: Set base16 theme for rofi < 1.4 +- name: Set base16 theme for rofi copy: - content: "{{ base16_schemes['schemes'][base16_scheme]['rofi']['themes']['base16-' + base16_scheme + '.config'] }}" - dest: "{{ ansible_env.HOME }}/.config/rofi/theme.config" + 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" tags: - color - -- name: Set base16 theme for rofi >= 1.4 - copy: - content: "{{ base16_schemes['schemes'][base16_scheme]['rofi']['themes']['base16-' + base16_scheme + '.rasi'] }}" - dest: "{{ ansible_env.HOME }}/.local/share/rofi/themes/current.rasi" - mode: "u=rw,g=r,o=r" - tags: - - color - - g - when: no + loop: + - config + - rasi - name: Configure Dunst template: diff --git a/config/rofi/.gitignore b/config/rofi/.gitignore index 83193ec..ba58f6e 100644 --- a/config/rofi/.gitignore +++ b/config/rofi/.gitignore @@ -1 +1,2 @@ theme.config +theme.rasi diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index af02ce7..9843b5f 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -1,6 +1,5 @@ configuration { - theme: "current"; lazy-grab: false; matching: "regex"; } - +@theme "theme"