diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-03 23:29:04 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-04 00:09:07 +0100 |
| commit | 61d0ea9cb67c77bbcb587e3deebb40d511894c17 (patch) | |
| tree | 0a27a80204e1bf74616f32720c9823f42d42f571 /roles/hyprtheme | |
| parent | a28abfae412d0f9391264f63df7223fc9107d300 (diff) | |
Add tofi launcher with theming
Diffstat (limited to 'roles/hyprtheme')
| -rw-r--r-- | roles/hyprtheme/tasks/template-theme.yml | 1 | ||||
| -rw-r--r-- | roles/hyprtheme/templates/theme/tofi.config.j2 | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/roles/hyprtheme/tasks/template-theme.yml b/roles/hyprtheme/tasks/template-theme.yml index 375d059d..7af3a634 100644 --- a/roles/hyprtheme/tasks/template-theme.yml +++ b/roles/hyprtheme/tasks/template-theme.yml @@ -16,6 +16,7 @@ - "walker.css" - "waybar.css" - "clipse.json" + - "tofi.config" - name: "Template theme files for: {{ hyprtheme_name }}" ansible.builtin.template: diff --git a/roles/hyprtheme/templates/theme/tofi.config.j2 b/roles/hyprtheme/templates/theme/tofi.config.j2 new file mode 100644 index 00000000..3d71a758 --- /dev/null +++ b/roles/hyprtheme/templates/theme/tofi.config.j2 @@ -0,0 +1,45 @@ +text-color = {{ foreground }} + +prompt-color = {{ accent }} +prompt-background = {{ background }} + +placeholder-color = {{foreground }}A8 +placeholder-background = {{ background }} + +input-color = {{ foreground }} +input-background = {{ background }} + +# default-result-color = {{ foreground }} +default-result-background = {{ background }} + +selection-color = {{ accent }} +selection-background = {{ background }} +# Matching portion of selection text +selection-match-color = {{ color5 }} + +### Text cursor theme +text-cursor = false +# Supported values: bar, block, underscore +text-cursor-style = bar +text-cursor-thickness = 0 + + +### Window theming +# Using 875px causes fractional pixelization of the floating menu +width = 874 +height = 600 +background-color = {{ background }} + +outline-width = 0 +outline-color = {{ accent }} + +border-width = 2 +border-color = {{ accent }} + +corner-radius = 5 +padding-top = 14 +padding-bottom = 14 +padding-left = 14 +padding-right = 14 +clip-to-padding = true +scale = true |
