No description
foot-command.py | ||
LICENSE | ||
README.md |
foot scripts
This repository contains scripts for foot.
foot-command
This script implements a command palette for Foot. It allows you to
interactively pick a command defined in your foot.ini
keybindings, and
simulate its corresponding keypress with wtype
. Here's how it works:
- Parses keybindings from the
[key-bindings]
section offoot.ini
. - Pipes the list of commands to a picker and waits for a selection.
- Sends the mapped keypress to to the focused window using
wtype
.
Dependencies
wtype
.- A dmenu-compatible picker (e.g.
fuzzel
).
Usage
foot-command.py [-c PATH_TO_CONFIG] [-p PICKER_COMMAND]
I recommend binding this to a key in your window manager. You need to invoke the command when Foot is the focused window.
Options
-c
,--config
: Path to yourfoot.ini
file. Defaults to$HOME/.config/foot/foot.ini
.-p
,--picker
: Picker to use (must supportdmenu
style input). Defaults tofuzzel --dmenu --placeholder=Select a command:
.