From 46a53b98320b5fd36f01e201d601f1e14385cc27 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Thu, 28 Mar 2024 16:05:46 +0000 Subject: [PATCH] tofi: add Gruvbox 95 styling --- tofi/config | 160 +++++++++++++++++++++------------------------------- 1 file changed, 64 insertions(+), 96 deletions(-) diff --git a/tofi/config b/tofi/config index b6a3fd2..6172b29 100644 --- a/tofi/config +++ b/tofi/config @@ -1,21 +1,71 @@ -# Default config for tofi -# -# Copy this file to ~/.config/tofi/config and get customising! -# -# A complete reference of available options can be found in `man 5 tofi`. -# -### Fonts -# + font-size = 13 + font = ".local/share/fonts/Sys1.1.ttf" + text-color = #282828 + # prompt-background = #ebdbb2 + prompt-background-padding = 15 + prompt-background-corner-radius = 0 + + placeholder-color = #FFFFFFA8 + placeholder-background = #00000000 + placeholder-background-padding = 0 + placeholder-background-corner-radius = 0 + + # input-background = #ebdbb2 + input-background-padding = 10 + input-background-corner-radius = 0 + + default-result-color = #282828 + default-result-background = #00000000 + default-result-background-padding = 0 + default-result-background-corner-radius = 0 + + selection-color = #cc241d + selection-background = #00000000 + selection-background-padding = 0 + selection-background-corner-radius = 0 + #selection-match-color = #b16286 + + prompt-text = "Search: " + prompt-color = "#282828" + #prompt-background = "#ebdbb2" + prompt-padding = 0 + placeholder-text = "" + num-results = 0 + result-spacing = 5 + horizontal = false + min-input-width = 0 + + # Width and height of the window. Can be pixels or a percentage. + width = 25% + height = 35% + # Window background color + background-color = #a89984ef + + # Width of the border outlines in pixels. + outline-width = 0 + # Border outline color + outline-color = #665c54 + # Width of the border in pixels. + border-width = 0 + # Border color + border-color = #665c54 + # Radius of window corners in pixels. + corner-radius = 0 + # Padding between borders and text. Can be pixels or a percentage. + padding-top = 15 + padding-bottom = 10 + padding-left = 10 + padding-right = 10 + + # Font to use, either a path to a font file or a name. # # If a path is given, tofi will startup much quicker, but any # characters not in the chosen font will fail to render. # # Otherwise, fonts are interpreted in Pango format. - font = ".local/share/fonts/Sys1.1.ttf" # Point size of text. - font-size = 14 z # Comma separated list of OpenType font feature settings to apply, # if supported by the chosen font. The format is similar to the CSS @@ -49,7 +99,6 @@ z # Default text color # # All text defaults to this color if not otherwise specified. - text-color = #D4BE98 # All pieces of text have the same theming attributes available: # @@ -66,30 +115,6 @@ z # *-background-corner-radius # Radius of background box corners in pixels - # Prompt text theme - # prompt-color = #FFFFFF - prompt-background = #00000000 - prompt-background-padding = 15 - prompt-background-corner-radius = 0 - - # Placeholder text theme - placeholder-color = #FFFFFFA8 - placeholder-background = #00000000 - placeholder-background-padding = 0 - placeholder-background-corner-radius = 0 - - # Input text theme - #input-color = #a9b665 - # input-background = #3C1f1d - input-background-padding = 15 - input-background-corner-radius = 0 - - # Default result text theme - # default-result-color = #FFFFFF - default-result-background = #00000000 - default-result-background-padding = 0 - default-result-background-corner-radius = 0 - # Alternate (even-numbered) result text theme # # If unspecified, these all default to the corresponding @@ -101,14 +126,7 @@ z # alternate-result-background-corner-radius = 0 # Selection text - selection-color = #b8bb26 - selection-background = #00000000 - selection-background-padding = 0 - selection-background-corner-radius = 0 - - # Matching portion of selection text - selection-match-color = #00000000 - + # ### Text cursor theme @@ -140,61 +158,11 @@ z # ### Text layout # - # Prompt to display. - prompt-text = "" - prompt-color = "#458588" - # prompt-background = "#504945" -# -#Extra horizontal padding between prompt and input. - prompt-padding = 5 - - # Placeholder input text. - placeholder-text = "" - - # Maximum number of results to display. - # If 0, tofi will draw as many results as it can fit in the window. - num-results = 0 - - # Spacing between results in pixels. Can be negative. - result-spacing = 5 - - # List results horizontally. - horizontal = false - - # Minimum width of input in horizontal mode. - min-input-width = 0 # ### Window theming # - # Width and height of the window. Can be pixels or a percentage. - width = 25% - height = 20% - - # Window background color - background-color = #282828EF - - - # Width of the border outlines in pixels. - outline-width = 0 - - # Border outline color - outline-color = #282828 - - # Width of the border in pixels. - border-width = 0 - - # Border color - border-color = #504945 - - # Radius of window corners in pixels. - corner-radius = 0 - - # Padding between borders and text. Can be pixels or a percentage. - padding-top = 10 - padding-bottom = 10 - padding-left = 10 - padding-right = 10 + # Whether to clip text drawing to be within the specified padding. This # is mostly important for allowing text to be inset from the border, @@ -225,11 +193,11 @@ z # # Values greater than 0 are only meaningful when tofi is anchored to a # single edge. - exclusive-zone = -1 + exclusive-zone = 4 # Window offset from edge of screen. Only has an effect when anchored # to the relevant edge. Can be pixels or a percentage. - margin-top = 43 + margin-top = 0 margin-bottom = 0 margin-left = 0 margin-right = 0