summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/tofi/config314
1 files changed, 314 insertions, 0 deletions
diff --git a/.config/tofi/config b/.config/tofi/config
new file mode 100644
index 0000000..af25bad
--- /dev/null
+++ b/.config/tofi/config
@@ -0,0 +1,314 @@
1#
2### Fonts
3#
4# Font to use, either a path to a font file or a name.
5#
6# If a path is given, tofi will startup much quicker, but any
7# characters not in the chosen font will fail to render.
8#
9# Otherwise, fonts are interpreted in Pango format.
10font = "/usr/share/fonts/TTF/iosevka-regular.ttc"
11
12# Point size of text.
13font-size = 24
14
15# Comma separated list of OpenType font feature settings to apply,
16# if supported by the chosen font. The format is similar to the CSS
17# "font-feature-settings" property.
18#
19# Examples:
20#
21# font-features = "smcp, c2sc" (all small caps)
22# font-features = "liga 0" (disable ligatures)
23font-features = ""
24
25# Comma separated list of OpenType font variation settings to apply
26# to variable fonts. The format is similar to the CSS
27# "font-variation-settings" property.
28#
29# Examples:
30#
31# font-variations = "wght 900" (Extra bold)
32# font-variations = "wdth 25, slnt -10" (Narrow and slanted)
33font-variations = ""
34
35# Perform font hinting. Only applies when a path to a font has been
36# specified via `font`. Disabling font hinting speeds up text
37# rendering appreciably, but will likely look poor at small font pixel
38# sizes.
39hint-font = true
40
41#
42### Text theming
43#
44# Default text color
45#
46# All text defaults to this color if not otherwise specified.
47# text-color = #FFFFFF
48
49# mocha
50text-color = #cdd6f4
51prompt-color = #f38ba8
52background-color = #1e1e2e
53
54# All pieces of text have the same theming attributes available:
55#
56# *-color
57# Foreground color
58#
59# *-background
60# Background color
61#
62# *-background-padding
63# Background padding in pixels (comma-delimited, CSS-style list).
64# See "DIRECTIONAL VALUES" under `man 5 tofi` for more info.
65#
66# *-background-corner-radius
67# Radius of background box corners in pixels
68
69# Prompt text theme
70# prompt-color = #FFFFFF
71prompt-background = #00000000
72prompt-background-padding = 0
73prompt-background-corner-radius = 0
74
75# Placeholder text theme
76placeholder-color = #FFFFFFA8
77placeholder-background = #00000000
78placeholder-background-padding = 0
79placeholder-background-corner-radius = 0
80
81# Input text theme
82# input-color = #FFFFFF
83input-background = #00000000
84input-background-padding = 0
85input-background-corner-radius = 0
86
87# Default result text theme
88# default-result-color = #FFFFFF
89default-result-background = #00000000
90default-result-background-padding = 0
91default-result-background-corner-radius = 0
92
93# Alternate (even-numbered) result text theme
94#
95# If unspecified, these all default to the corresponding
96# default-result-* attribute.
97#
98# alternate-result-color = #FFFFFF
99# alternate-result-background = #00000000
100# alternate-result-background-padding = 0
101# alternate-result-background-corner-radius = 0
102
103# Selection text
104selection-color = #1e1e2e
105selection-background = #f38ba8
106selection-background-padding = 4
107selection-background-corner-radius = 0
108
109# Matching portion of selection text
110selection-match-color = #45475a
111
112#
113### Text cursor theme
114#
115# Style of the optional text cursor.
116#
117# Supported values: bar, block, underscore
118text-cursor-style = bar
119
120# Color of the text cursor
121#
122# If unspecified, defaults to the same as input-color
123# text-cursor-color = #FFFFFF
124
125# Color of text behind the text cursor when text-cursor-style = block
126#
127# If unspecified, defaults to the same as background-color
128# text-cursor-background = #000000
129
130# Corner radius of the text cursor
131text-cursor-corner-radius = 0
132
133# Thickness of the bar and underscore text cursors.
134#
135# If unspecified, defaults to a font-dependent value when
136# text-cursor-style = underscore, or to 2 otherwise.
137# text-cursor-thickness = 2
138
139#
140### Text layout
141#
142# Prompt to display.
143prompt-text = "run: "
144
145# Extra horizontal padding between prompt and input.
146prompt-padding = 0
147
148# Placeholder input text.
149placeholder-text = ""
150
151# Maximum number of results to display.
152# If 0, tofi will draw as many results as it can fit in the window.
153num-results = 0
154
155# Spacing between results in pixels. Can be negative.
156result-spacing = 0
157
158# List results horizontally.
159horizontal = false
160
161# Minimum width of input in horizontal mode.
162min-input-width = 0
163
164#
165### Window theming
166#
167# Width and height of the window. Can be pixels or a percentage.
168width = 1280
169height = 720
170
171# Window background color
172# background-color = #1B1D1E
173
174# Width of the border outlines in pixels.
175outline-width = 2
176
177# Border outline color
178outline-color = #fab387
179
180# Width of the border in pixels.
181border-width = 4
182
183# Border color
184border-color = #f38ba8
185
186# Radius of window corners in pixels.
187corner-radius = 0
188
189# Padding between borders and text. Can be pixels or a percentage.
190padding-top = 8
191padding-bottom = 8
192padding-left = 8
193padding-right = 8
194
195# Whether to clip text drawing to be within the specified padding. This
196# is mostly important for allowing text to be inset from the border,
197# while still allowing text backgrounds to reach right to the edge.
198clip-to-padding = true
199
200# Whether to scale the window by the output's scale factor.
201scale = true
202
203#
204### Window positioning
205#
206# The name of the output to appear on. An empty string will use the
207# default output chosen by the compositor.
208output = ""
209
210# Location on screen to anchor the window to.
211#
212# Supported values: top-left, top, top-right, right, bottom-right,
213# bottom, bottom-left, left, center.
214anchor = top
215
216# Set the size of the exclusive zone.
217#
218# A value of -1 means ignore exclusive zones completely.
219# A value of 0 will move tofi out of the way of other windows' zones.
220# A value greater than 0 will set that much space as an exclusive zone.
221#
222# Values greater than 0 are only meaningful when tofi is anchored to a
223# single edge.
224exclusive-zone = -1
225
226# Window offset from edge of screen. Only has an effect when anchored
227# to the relevant edge. Can be pixels or a percentage.
228margin-top = 5%
229margin-bottom = 0
230margin-left = 0
231margin-right = 0
232
233#
234### Behaviour
235#
236# Hide the mouse cursor.
237hide-cursor = false
238
239# Show a text cursor in the input field.
240text-cursor = false
241
242# Sort results by number of usages in run and drun modes.
243history = true
244
245# Specify an alternate file to read and store history information
246# from / to. This shouldn't normally be needed, and is intended to
247# facilitate the creation of custom modes.
248# history-file = /path/to/histfile
249
250# Select the matching algorithm used. If normal, substring matching is
251# used, weighted to favour matches closer to the beginning of the
252# string. If prefix, only substrings at the beginning of the string are
253# matched. If fuzzy, searching is performed via a simple fuzzy matching
254# algorithm.
255#
256# Supported values: normal, prefix, fuzzy
257fuzzy-match = false
258
259# If true, require a match to allow a selection to be made. If false,
260# making a selection with no matches will print input to stdout.
261# In drun mode, this is always true.
262require-match = true
263
264# If true, automatically accept a result if it is the only one
265# remaining. If there's only one result on startup, window creation is
266# skipped altogether.
267auto-accept-single = false
268
269# If true, typed input will be hidden, and what is displayed (if
270# anything) is determined by the hidden-character option.
271hide-input = false
272
273# Replace displayed input characters with a character. If the empty
274# string is given, input will be completely hidden.
275# This option only has an effect when hide-input is set to true.
276hidden-character = "*"
277
278# Instead of printing the selected entry, print the 1-based index of
279# the selection. This option has no effect in run or drun mode. If
280# require-match is set to false, non-matching input will still result
281# in the input being printed.
282# print-index = false
283
284# If true, directly launch applications on selection when in drun mode.
285# Otherwise, just print the command line to stdout.
286drun-launch = false
287
288# The terminal to run terminal programs in when in drun mode.
289# This option has no effect if drun-launch is set to true.
290# Defaults to the value of the TERMINAL environment variable.
291# terminal = foot
292
293# Delay keyboard initialisation until after the first draw to screen.
294# This option is experimental, and will cause tofi to miss keypresses
295# for a short time after launch. The only reason to use this option is
296# performance on slow systems.
297late-keyboard-init = false
298
299# If true, allow multiple simultaneous processes.
300# If false, create a lock file on startup to prevent multiple instances
301# from running simultaneously.
302multi-instance = false
303
304# Assume input is plain ASCII, and disable some Unicode handling
305# functions. This is faster, but means e.g. a search for "e" will not
306# match "é".
307ascii-input = false
308
309#
310### Inclusion
311#
312# Configs can be split between multiple files, and then included
313# within each other.
314# include = /path/to/config