# 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`. include = ~/.config/tofi/config # ### Fonts # font = /usr/share/fonts/OTF/HurmitNerdFont-Light.otf font-size = 17 # font-features = "smcp, c2sc" (all small caps) # font-features = "liga 0" (disable ligatures) font-features = "smcp" # Comma separated list of OpenType font variation settings to apply # to variable fonts. The format is similar to the CSS # "font-variation-settings" property. # # Examples: # # font-variations = "wght 900" (Extra bold) # font-variations = "wdth 25, slnt -10" (Narrow and slanted) font-variations = "" hint-font = false # ### Text theming # # Default text color # # All text defaults to this color if not otherwise specified. text-color = #FFFFFF # Selection text selection-color = #ffbb00 # Matching portion of selection text selection-match-color = #ff7700 # ### Text cursor theme # # Style of the optional text cursor. # # Supported values: bar, block, underscore text-cursor-style = underscore # Color of the text cursor # # If unspecified, defaults to the same as input-color # text-cursor-color = #FFFFFF # Color of text behind the text cursor when text-cursor-style = block # # If unspecified, defaults to the same as background-color # text-cursor-background = #000000 # Corner radius of the text cursor text-cursor-corner-radius = 0 # Thickness of the bar and underscore text cursors. # # If unspecified, defaults to a font-dependent value when # text-cursor-style = underscore, or to 2 otherwise. # text-cursor-thickness = 2 # ### Text layout # # Prompt to display. prompt-text = "" # Extra horizontal padding between prompt and input. prompt-padding = 8 # 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 = 5 # Spacing between results in pixels. Can be negative. result-spacing = 15 # 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 = 100% height = 100% border-width = 0 border-color = #ffbb00ab # Padding between borders and text. Can be pixels or a percentage. padding-top = 35% padding-left = 35% # Window background color background-color = #191A1CF0 # Width of the border outlines in pixels. outline-width = 0 # Border outline color outline-color = #080800 # Radius of window corners in pixels. corner-radius = 0 # Whether to scale the window by the output's scale factor. scale = true # ### Window positioning # # The name of the output to appear on. An empty string will use the # default output chosen by the compositor. output = "" # Location on screen to anchor the window to. # # Supported values: top-left, top, top-right, right, bottom-right, # bottom, bottom-left, left, center. anchor = center # Set the size of the exclusive zone. # # A value of -1 means ignore exclusive zones completely. # A value of 0 will move tofi out of the way of other windows' zones. # A value greater than 0 will set that much space as an exclusive zone. # # Values greater than 0 are only meaningful when tofi is anchored to a # single edge. exclusive-zone = -1 # ### Behaviour # # Hide the mouse cursor. hide-cursor = true # Show a text cursor in the input field. text-cursor = false # Sort results by number of usages in run and drun modes. history = false require-match = true auto-accept-single = false # If true, typed input will be hidden, and what is displayed (if # anything) is determined by the hidden-character option. hide-input = true # Replace displayed input characters with a character. If the empty # string is given, input will be completely hidden. # This option only has an effect when hide-input is set to true. hidden-character = "" # ### Inclusion # # Configs can be split between multiple files, and then included # within each other. # include = /path/to/config