9 releases

0.7.4 Jul 14, 2024
0.7.2 Dec 9, 2023
0.7.1 Nov 3, 2023
0.7.0 Feb 19, 2023
0.4.5 Aug 19, 2021

#99 in GUI

GPL-3.0-or-later

470KB
1.5K SLoC

logo

Kickoff is heavily inspired by rofi, but not without changes made. Like many programs, kickoff was born from an itch that no existing program seemed to relieve and my desire to learn a lower-level programming language.

AUR version Crates Version

screenshot

Install

Arch Linux

Use your favorite AUR manager, i.e. blinky:

blinky -S kickoff

Cargo

cargo install kickoff

Features

  • Wayland native (only wlroots based compositors though)
  • Fuzzy search
  • Fast and snappy
  • Remembers often used applications
  • Argument support for launched programs
  • Paste support
  • Custom Input via stdin

All programs found in $PATH are included in the search results. This can include your additions to $PATH as long as they are done before you launch kickoff or the program that launches kickoff (i.e. your window manager)

This list is then combined with your previous searches and sorted by the amount of usage and how well it fits the query.

Configuration

A default configuration will be placed at $XDG_CONFIG_HOME/kickoff/config.toml or can be found here.

Script integration

If you want to adapt kickoff for your use case, i.e. selecting an entry from a password manager, you can use one of the --from-* options. If any of those options is defined, the default behavior of reading from $PATH is disabled as well as saving the history. The latter can easily be reactivated by setting --history <some path>.

Option Argument Usage
--from-stdin None Reads a list of items from stdin
--from-file Path Reads a list of items from a file
--from-path None Walks all $PATH directories and adds all executables as selectable items
--stdout None Prints the selected result to stdout instead of trying to execute it

These can also be combined, for example, if you want to add custom commands to your usual list of programs.

echo 'Big kitty = kitty -o "font_size=20"' | kickoff --from-stdin --from-path --history ".cache/kickoff/custom_history.csv"

Input Format

Reading from file or stdin follows a very simple format, spaces around the equals sign can be dropped:

Small kitty = kitty -o "font_size=5"
Big kitty = kitty -o "font_size=20"
^=======^   ^=====================^
    |                  |
Displayed Name         |
                       |
              Executed Command

Magic Words

When reading from a file or stdin, you can use magic words to influence the generated items. Currently, there is only one, but more might be added someday:

Word Argument Usage Default
%base_score number Sets the base score for all following entries, can be overwritten later 0

In this example, Small kitty has a base score of 0, while the others have a score of 5.

Small kitty = kitty -o "font_size=5"
%base_score = 5
Big kitty = kitty -o "font_size=20"
Medium kitty = kitty -o "font_size=12"

Dependencies

~20–50MB
~797K SLoC