Upgrade rofi config

This commit is contained in:
Geoffrey Frogeye 2021-12-15 21:59:45 +01:00
parent 7f0e24a29d
commit 76df5d4d80
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
4 changed files with 20 additions and 12 deletions

View file

@ -6,6 +6,7 @@
with_items: with_items:
- ".config/Xresources" - ".config/Xresources"
- ".config/rofi" - ".config/rofi"
- ".local/share/rofi/themes"
- ".local/bin" - ".local/bin"
- ".local/share/fonts" - ".local/share/fonts"
- ".config/qutebrowser" - ".config/qutebrowser"
@ -108,17 +109,24 @@
- color - color
when: display_server == 'x11' when: display_server == 'x11'
- name: Set base16 theme for rofi - name: Set base16 theme for rofi < 1.4
copy: copy:
content: "{{ base16_schemes['schemes'][base16_scheme]['rofi']['themes']['base16-' + base16_scheme + '.' + item] }}" content: "{{ base16_schemes['schemes'][base16_scheme]['rofi']['themes']['base16-' + base16_scheme + '.config'] }}"
dest: "{{ ansible_env.HOME }}/.config/rofi/theme.{{ item }}" dest: "{{ ansible_env.HOME }}/.config/rofi/theme.config"
mode: "u=rw,g=r,o=r" mode: "u=rw,g=r,o=r"
with_items:
- rasi
- config
tags: tags:
- color - 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
- name: Configure Dunst - name: Configure Dunst
template: template:
src: "{{ ansible_env.HOME }}/.config/dunst/dunstrc.j2" src: "{{ ansible_env.HOME }}/.config/dunst/dunstrc.j2"

View file

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

View file

@ -1,8 +1,4 @@
#include "theme.config" #include "theme.config"
rofi.theme: theme rofi.theme: theme
rofi.cycle: true
rofi.case-sensitive: false
rofi.scroll-method: 0
rofi.show-match: true
rofi.lazy-grab: false rofi.lazy-grab: false
rofi.matching: regex rofi.matching: regex

6
config/rofi/config.rasi Normal file
View file

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