No results
Table of Contents
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Tofi
Tofi is a minimal application launcher and dialog for Wayland (and X11). This folder holds the main config and a separate config for the power menu.
What the config does
-
config(general launcher)- Prompt
"> "; colours: text, prompt, selection, background (with alpha). - Layout: full width/height, padding (e.g. 35% left, 30% top), no border/outline, 8 results, spacing 14.
- Font: Cantarell, weight 600, size 24.
- Prompt
-
powermenu-config(power menu dialog)- Same layout style with different colours (e.g. Catppuccin-like selection and background).
- Prompt
" "; 6 results; padding 35% left, 32% top; font size 32. - Used when you run tofi as a power menu (e.g.
tofi --config ~/.config/tofi/powermenu-configor a wrapper script that shows “Shutdown / Reboot / Lock / …” and runs the chosen action).
How to use it
- Install tofi.
- Symlink or copy this folder to
~/.config/tofi/. - As app launcher – Run
tofi(ortofi-run); it will useconfigand show installed .desktop apps. Often bound to a key (e.g. Super+R) in your compositor. - As power menu – Run tofi with the power menu config and a list of commands, e.g.:
echo -e "Lock\nSuspend\nReboot\nShutdown" | tofi --config ~/.config/tofi/powermenu-configthen branch on selection to runhyprlock,systemctl suspend, etc.- Or use a script/wrapper that calls tofi with
powermenu-configand handles the chosen action. Waybar’scustom/powerin this repo runspowermenu, which can be such a script.
File reference
| File | Purpose |
|---|---|
config |
Default launcher look and layout |
powermenu-config |
Look and layout for power menu |