rofi: Fix theme definition for newer version

I was right the first time?
This commit is contained in:
Geoffrey Frogeye 2021-12-21 17:25:47 +01:00
parent 105bd9461c
commit 84a2906be9
3 changed files with 8 additions and 16 deletions

View file

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

View file

@ -1 +1,2 @@
theme.config
theme.rasi

View file

@ -1,6 +1,5 @@
configuration {
theme: "current";
lazy-grab: false;
matching: "regex";
}
@theme "theme"