1 tofi
Luca Matteo Spoljarevic edited this page 2026-02-27 21:44:07 +01:00
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.
  • 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-config or a wrapper script that shows “Shutdown / Reboot / Lock / …” and runs the chosen action).

How to use it

  1. Install tofi.
  2. Symlink or copy this folder to ~/.config/tofi/.
  3. As app launcher Run tofi (or tofi-run); it will use config and show installed .desktop apps. Often bound to a key (e.g. Super+R) in your compositor.
  4. 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-config then branch on selection to run hyprlock, systemctl suspend, etc.
    • Or use a script/wrapper that calls tofi with powermenu-config and handles the chosen action. Waybars custom/power in this repo runs powermenu, which can be such a script.

File reference

File Purpose
config Default launcher look and layout
powermenu-config Look and layout for power menu