dfzf redefines how you interact with windows in sway and i3, letting you switch windows with fzf, sorted by recency — no more cycling or losing your mind. Unlike traditional workspaces or tabbing, it frees you from relying on mental cartography, using name- and time-based navigation to keep access effortless, even with dozens of windows.
No more mental gymnastics. Just type to fuzzy-match and access recent windows first — eventually, you’ll rely solely on dfzf-windows for seamless navigation.
Click to expand description of the GIF
This GIF shows dfzf-windows in action:
- List the current windows, recent ones come first
- Inspect the windows previews, including terminal
- Mark the windows either as "urgent" or "important"
- Kills windows one by one until none are left
- Bonus: Notice a bit of "inception" in the
dfzf-windowspreview...
Using dfzf invites you to rethink how you use your window manager:
- No more tabs — Use
dfzf-windowsto manage windows efficiently, without relying on tabbed layouts. - No more workspaces — Replace static workspaces with a flexible color tagging system. Assign multiple tags to a single window for powerful cross-grouping and faster navigation.
- No more bars — Free up screen space and ditch the traditional bar. Invoke minimal, dedicated popups for clock, system monitor, system info, wifi, and more — only when needed.
These make your desktop cleaner, more dynamic, and easier to manage — with more pixels dedicated to what actually matters — always full-screen !
- ⏱️ Instant access — switch to any window instantly, regardless of how many are open.
- 🔍 Recent-first navigation — fuzzy-search windows by name, with recent ones prioritized.
- 🧠 Low cognitive load — remember what and when, not where.
dfzf relies on dfzf-daemon to track window focus changes via IPC, storing the order of recently used windows in their marks. It uses dfzf-mark to add or remove marks, such as "important" marks (shown in red). And don't worry if you're already using marks — dfzf won't interfere with your existing setup.
Just make sure the daemon is running when you try dfzf for the first time!
dfzf is more than a window switcher — it's a full toolkit for your desktop, built with speed, consistency, and minimalism in mind:
| Tool | Description | i3 | Sway | macOS |
|---|---|---|---|---|
dfzf-windows |
Navigate windows by title or time | ✅ | ✅ | ✅ (no ctrl-t tiling) |
dfzf-focus-toggle |
Jump to a given window and back | ✅ | ✅ | ✅ |
dfzf-scrollbacks |
Fuzzy-search within all your terminals at once | ✅ | ✅ | ✅ kitty remote control, kitty tabs included |
dfzf-launcher |
Launch desktop apps or cmds in terminal | ✅ | ✅ | ✅ GUI apps only (.app bundles, launcher_app_dirs) |
dfzf-notify |
Browse past notifications | ❌ | ✅ | notif, no history |
dfzf-tasks |
Manage caldav tasks | ✅ | ✅ | |
dfzf-clipboard |
Searchable clipboard with image/text preview | ✅ | ✅ | |
dfzf-password |
Copy and preview entries from a password CLI | ✅ | ✅ | pbcopy fallback) |
dfzf-mail |
View, preview and delete emails | ✅ | ✅ | |
dfzf-exit |
Logout, reboot, suspend, hibernate | ❌ | ✅ | exit_cmd_* |
dfzf-tools |
Clock, calendar, top, wifi, bluetooth, fetch popup | ✅ | ✅ | |
dfzf-hub |
Invoke other dfzf commnands | ✅ | ✅ | ✅ |
dfzf-term |
Terminal management (kill/new/toggle/scratchpad) | ✅ | ✅ | ❌ scratchpad, layouts |
dfzf-git |
Smart git repository lazygit toggle | ✅ | ✅ | ✅ hidden = minimized |
macOS (Hammerspoon backend, experimental): ✅ covered by tests
against a mocked Hammerspoon, not yet run on a real Mac ·
| Feature / Terminal | Kitty | Foot | Alacritty |
|---|---|---|---|
dfzf-windows Terminal Preview |
✅ Full | ❌ Not supported | ❌ Not supported |
dfzf-scrollbacks Support |
✅ Full | ❌ Not supported | ❌ Not supported |
dfzf-clipboard Image Preview |
✅ Full | 🔻 Degraded | |
Press escape to kill popup |
✅ Full | ||
| Everything else | ✅ Full | ✅ Full | ✅ Full |
Prerequisite
In general, dfzf needs:
- sway or i3, with default layout
tabbed - fzf
- kitty version >= 0.42.1 OR alacritty OR foot
- jq version >= 1.7
- nerdfonts to display the glyphs (see nerdfont section)
- lazygit (for
dfzf-git)
Moreover, each tool can have specific dependencies described in the Features section.
Also be sure fzf is accessible from sway/i3, by moving it to /usr/local/bin/ (instead of default ~/.cargo/bin place)
or setup sway/i3 path correctly
#~/.config/sway/config
set $PATH /usr/local/bin:/opt/bin:$PATH
Download the releases
- Download/copy the binaries into
/usr/local/bin/or anywhere in your PATH. - Download the deb package, and
sudo dpkg -iit on debian/ubuntu.
Build/install dfzf-daemon
cd dfzf-utils
curl https://sh.rustup.rs -sSf | sh
rustup update nightly
cargo +nightly build --release
find dfzf-utils -type f -executable -name "dfzf-*" |xargs -I@ sudo cp @ /usr/local/bin/macOS (Hammerspoon backend, experimental)
On macOS there is no sway/i3: a Hammerspoon spoon
tracks windows and recency, and dfzf-hs-msg emulates the small part of the
i3 IPC that the window switcher needs. There is no tiling: windows are
maximized, dfzf popups are centered.
See the macOS column of What's Included? for the feature parity: anything relying on workspaces, scratchpad or layouts fails with an explicit "unsupported on macOS" error.
brew install --cask hammerspoon kitty
# GNU bash: macOS ships bash 3.2
brew install bash fzf jq fd ripgrep
# bin/ and macos/bin/ in your PATH (macos/bin/dfzf-mark replaces the Rust one)
cp bin/* macos/bin/* /opt/homebrew/bin/
# optional, faster: an absolute bash shebang skips one process (/usr/bin/env) per script
for f in bin/* macos/bin/*; do sed -i '' "1s|^#!/usr/bin/env bash\$|#!$(brew --prefix)/bin/bash|" "/opt/homebrew/bin/${f##*/}"; done
cp -R macos/Dfzf.spoon ~/.hammerspoon/Spoons/
# archive downloaded with a browser only: lift the quarantine on the native module
xattr -dr com.apple.quarantine ~/.hammerspoon/Spoons/Dfzf.spoon-- ~/.hammerspoon/init.lua
require("hs.ipc")
hs.ipc.cliInstall("/opt/homebrew") -- provides the `hs` CLI used by dfzf
hs.loadSpoon("Dfzf")
spoon.Dfzf:start()
local hyper = { "cmd", "alt", "ctrl", "shift" }
spoon.Dfzf:bindHotkeys({
windows = { hyper, "tab" },
hub = { hyper, "l" },
term = { hyper, "n" },
git = { hyper, "g" },
})Dfzf.commands entries are shell commands, or focus toggles in the
dfzf-focus-toggle form: { toggle = <key>, criteria = <criteria>, fallback = <shell command> }
(fallback optional). With the native backend, a toggle runs inside Hammerspoon in
a single request, without starting any process (a few ms instead of a few hundred):
spoon.Dfzf.commands.slack = { toggle = "slack", criteria = '[app_id="^slack$"]', fallback = "open -a Slack" }
spoon.Dfzf:bindHotkeys({ slack = { hyper, "s" } })
-- or from any Lua code: spoon.Dfzf:focusToggle("slack", '[app_id="^slack$"]', "open -a Slack")Windows switcher (native backend, opt-in): with spoon.Dfzf.switcher = true
(before spoon.Dfzf:start()), the windows hotkey no longer opens a popup. It
shows a dfzf-windows --persistent kept running in its own hidden kitty
instance (--instance-group dfzf-switcher): the hotkey only reloads its list
(through fzf --listen, guarded by an API key kept next to the socket) and
brings it back, about 0.1s instead of 0.2s. enter, esc and ctrl-t hide it
instead of quitting fzf; a dead switcher is started again on the next hotkey.
Native backend: the release archive ships Dfzf.spoon/hs/_dfzf.so, a native
Hammerspoon module (from a checkout: make -C macos/native spoon). It tracks
windows, marks and recency off the main thread and serves dfzf on a Unix socket,
~/.local/state/dfzf/hs.sock (override with DFZF_HS_SOCKET for both the
scripts and Hammerspoon, or Dfzf.socketPath), so a busy Hammerspoon or a hung
app no longer stalls the window switcher. It needs the Accessibility permission
for Hammerspoon. When the module is missing or fails to start, the spoon logs
why in the Hammerspoon console and serves dfzf itself through the hs CLI, as
does dfzf-hs whenever the socket does not answer. CI builds and tests the
module against a simulated window source only: the Accessibility path, window
placement and the speed-up have not been checked on a real Mac yet.
Differences with sway/i3:
-
macOS has no per-window
app_id: dfzf windows are identified by their title (kitty --title dfzf-popup), seeDfzf.identityTitles/Dfzf.commands. Popups run in their own kitty instance (--instance-group dfzf-popup), so opening or closing one never bringsdfzf-termforward. -
marks (recency, colors) and urgency live in the spoon and are lost when Hammerspoon reloads.
-
esccloses the hub popup whatever tool runs in it (clock, top, wifi...) only with a kitty mapping, the counterpart of the sway/i3map escape close_window. It matches the command the popup started with: kitty'stitle:would see the title set by the running program, not--title dfzf-popup:#~/.config/kitty/kitty.conf map --when-focus-on cmdline:dfzf-hub$ escape close_window -
a popup closed without picking a window (
esc) gives the focus back to the window it was opened from by a spoon hotkey, else to the most recently used one, skipping kitty's own focus changes while it opens the popup. The focus is left alone when the popup's pick already moved it to another app (a clicked notification). -
dfzf-focus-togglecriteria match the lowercased app name asapp_id, e.g.'[app_id="firefox" title="mail.google.com"]'. With the native backend, the script sends the whole toggle as one request.
Nerdfont
Glyph are used in some dfzf modules (windows, tasks). If you don't wan't them you can override the config that way:
#~/.config/dfzf/dfzf.conf
windows_glyph_rules_json='[{"glyph": ""}]'You can install nerdfont by running this script (source). Also snap apps cannot access to .local/share/fonts, reason I personally install them into ~/.fonts instead.
#!/bin/bash
declare -a fonts=(
BitstreamVeraSansMono
CascadiaCode
CodeNewRoman
DroidSansMono
FiraCode
FiraMono
Go-Mono
Hack
Hermit
JetBrainsMono
Meslo
Noto
Overpass
ProggyClean
RobotoMono
SourceCodePro
SpaceMono
Ubuntu
UbuntuMono
)
version=$(curl -s 'https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest' | jq -r '.name')
fonts_dir="${HOME}/.fonts"
if [[ ! -d "$fonts_dir" ]]; then
mkdir -p "$fonts_dir"
fi
for font in "${fonts[@]}"; do
zip_file="${font}.zip"
download_url="https://github.com/ryanoasis/nerd-fonts/releases/download/${version}/${zip_file}"
echo "Downloading $download_url"
wget "$download_url"
unzip "$zip_file" -d "$fonts_dir"
rm "$zip_file"
done
find "$fonts_dir" -name 'Windows Compatible' -delete
fc-cache -fvIf some commands are not found when dfzf is launched from a compositor (Sway, i3),
it may be because tools installed via a version manager (e.g. mise, asdf) are not
in the PATH. Add the shims directory at the top of ~/.config/dfzf/dfzf.conf:
export PATH="$HOME/.local/share/mise/shims:$PATH"Sway configuration
exec --no-startup-id dfzf-daemon # reboot to make the daemon running
exec --no-startup-id copyq
exec mako # for the dfzf-notifs
exec swaymsg workspace 1, layout tabbed
workspace_auto_back_and_forth no
# FOR FOOT OR ALACRITTY
#set $term foot
#set $term alacritty
#set $dfzf_term foot --app-id=dfzf-popup -e
#bindsym $mod+Tab exec --no-startup-id $dfzf_term dfzf-windows
#bindsym $mod+l exec --no-startup-id $dfzf_term dfzf-hub
# FOR KITTY
set $term kitty -1
exec --no-startup-id kitty -1 --start-as hidden
exec --no-startup-id kitty -1 --instance-group dfzf --start-as hidden -o 'map escape close_window' -o 'listen_on=unix:/tmp/kitty-dfzf'
bindsym $mod+Tab exec --no-startup-id kitty -1 --class=dfzf-popup -e dfzf-windows
bindsym $mod+l exec --no-startup-id kitty -1 --instance-group dfzf --class=dfzf-popup -e dfzf-hub
bindsym $mod+n exec dfzf-term scratchpad $term
bindsym ctrl+slash exec dfzf-term toggle $term
bindsym shift+ctrl+slash exec dfzf-term kill $term
bindsym $mod+g exec dfzf-git
for_window [app_id="^dfzf-popup$"] floating enable, sticky enable, border pixel 6, exec dfzf-resize 65
# optional: hide the tabs
font pango:monospace 0.001
default_border none
default_floating_border none
titlebar_padding 1
titlebar_border_thickness 0I3 configuration
exec --no-startup-id dfzf-daemon # reboot to make the daemon running
# make sure the workspace is tabbed by default
exec i3-msg workspace 1, layout tabbed
exec --no-startup-id copyq
workspace_auto_back_and_forth no
# FOR FOOT OR ALACRITTY
#set $term foot
#set $term alacritty
#set $dfzf_term foot --app-id=dfzf-popup -e
#bindsym $mod+Tab exec --no-startup-id $dfzf_term dfzf-windows
#bindsym $mod+l exec --no-startup-id $dfzf_term dfzf-hub
# FOR KITTY
set $term kitty -1
exec --no-startup-id kitty -1 --start-as hidden
exec --no-startup-id kitty -1 --instance-group dfzf --start-as hidden -o 'map escape close_window' -o 'listen_on=unix:/tmp/kitty-dfzf'
bindsym $mod+Tab exec --no-startup-id kitty -1 --class=dfzf-popup -e dfzf-windows
bindsym $mod+l exec --no-startup-id kitty -1 --instance-group dfzf --class=dfzf-popup -e dfzf-hub
bindsym $mod+n exec dfzf-term scratchpad $term
bindsym ctrl+slash exec dfzf-term toggle $term
bindsym shift+ctrl+slash exec dfzf-term kill $term
bindsym $mod+g exec dfzf-git
for_window [class="^dfzf-popup$"] floating enable, sticky enable, border pixel 6, exec dfzf-resize 65
# optional: hide the tabs
font pango:monospace 0
default_border none
default_floating_border none
# reset font for the bar
bar {
font pango:monospace 10 # needed
status_command i3status
}user configuration [optional]
you can override default configurations:
# ~/.config/dfzf/dfzf.conf
#kitty only: regexp to match the prompt
windows_prompt_pattern="^[>$%] "
#remove pattern from the window's title
windows_title_rm_pattern=' —[^—]*?— Mozilla Firefox'
# rename the application classes
windows_app_id_map_json='{"evolution": "mail", "kitty": "terminal", "jetbrains-idea-ce": "jetbrains"}'
# assign glyphs to application classes
windows_glyph_rules_json='[
{ "field": "name", "regex": "vim\\b", "glyph": " " },
{ "field": "app_id", "regex": "terminal", "glyph": " " },
{ "field": "app_id", "regex": "firefox", "glyph": " " },
{ "field": "app_id", "regex": "jetbrains", "glyph": " " },
{ "field": "app_id", "regex": "gimp", "glyph": " " },
{ "field": "app_id", "regex": "thunar|nautilus", "glyph": " " },
{ "field": "app_id", "regex": "thunderbird|evolution|geary|mailspring|k9mail|mail", "glyph": " " },
{ "glyph": " " }
]'
# override the exit list and respective commands
exit_options=(
"l: Lock (swaylock)"
"e: Restart GDM"
"s: Lock and Suspend"
"r: Reboot"
"S: Shutdown"
"h: Hibernate"
)
exit_cmd_l='swaylock -e -F -f -k -c 000000'
exit_cmd_e='sudo /usr/bin/systemctl restart gdm'
exit_cmd_s='swaylock -e -F -f -k -c 000000 && systemctl suspend'
exit_cmd_r='sudo reboot'
exit_cmd_S='shutdown now'
exit_cmd_h='sudo /bin/systemctl hibernate'
tools_clock_cmd="ESCDELAY=25 tty-clock -c -C 4 -s -S -d 0 -a 100000000"
tools_calendar_cmd="~/.venv/3.11.6/bin/khal interactive"
tools_top_cmd="gotop"
# hub user customization
hub_options=(
"a: Audio"
"b: Bluetooth"
"c: Clipboard"
"d: Date"
"e: Exit"
"f: Fetch"
"g: Gotop"
"k: Calendar"
"l: Launcher"
"m: Mail"
"n: Notif"
"p: Password"
"s: Scrollback"
"t: Task"
"w: Wifi"
"i: Iotop"
"q: Pomatez"
)
# hub custom command mappings
hub_cmd_a='dfzf-exec exec pavucontrol'
hub_cmd_b='dfzf-tools bluetooth'
hub_cmd_c='dfzf-clipboard'
hub_cmd_d='dfzf-tools clock'
hub_cmd_e='dfzf-exit'
hub_cmd_f='dfzf-tools fetch'
hub_cmd_g='dfzf-tools top'
hub_cmd_k='dfzf-tools calendar'
hub_cmd_l='dfzf-launcher'
hub_cmd_m='dfzf-mail'
hub_cmd_n='dfzf-notifs'
hub_cmd_p='dfzf-password'
hub_cmd_s='dfzf-scrollbacks'
hub_cmd_t='dfzf-tasks'
hub_cmd_w='dfzf-tools wifi'
hub_cmd_i='TERM=xterm sudo /usr/sbin/iotop -o'
hub_cmd_q="pomatez || dfzf-windows-load|rg pomatez|sed -Ez 's/.*#([0-9]+).*/\1/'|xargs -I@ dfzf-exec '[con_id=@]' focus"
# password backend commands: gopass when installed (mounts included), pass otherwise
# pass_list_cmd='gopass ls --flat'
# pass_preview_cmd='gopass show --nosync'
# pass_show_password_cmd='gopass show --nosync -o'
# pass_otp_cmd='gopass otp -o'fzf look [optional]
Every dfzf module draws fzf with a rounded orange border. Override the look
through DFZF_FZF_OPTS, read from the environment (not from dfzf.conf) and
appended to the shared fzf options:
export DFZF_FZF_OPTS='--padding=1,2 --border=sharp --color=border:#5f87af'
# no border, no padding
export DFZF_FZF_OPTS=''Kitty configuration [optional]
#~/.config/kitty/kitty.conf
confirm_os_window_close 0
allow_remote_control yes
listen_on unix:/tmp/kittyWindows terminal preview in kitty:
the terminal preview compares the i3/sway window title with the kitty title. In some case there is duplicates, and we cannot determinate the right terminal. So the current hack is to add 2 random characters to the title so that they get unique. For that, you will have to disable kitty title handling and tweak the shell title. Here for zsh:
#~/.config/kitty/kitty.conf
shell_integration no-titletweak zsh:
# ~/.oh-my-zsh/lib/termsupport.zsh
case "$TERM" in
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty*|st*|foot*|contour*)
print -Pn "\e]2;${2:q} /$(< /dev/urandom tr -dc A-Za-z0-9 | head -c 2)\a" # set window name
print -Pn "\e]1;${1:q} /$(< /dev/urandom tr -dc A-Za-z0-9 | head -c 2)\a" # set tab nameFirefox [optional]
Install the below extensions:
- tabs are windows
- hostname in windows title
I use this template
{title} - {href} —, together with this variable in dfzf config to bring perfect ff titles.
# remove pattern from the window's title
windows_title_rm_pattern=' —[^—]*?— Mozilla Firefox'Chromium [optional]
Install the below extensions:
- new-tab-new-window
- either URL in title or Title morph
Windows
- windows ordered by last access
- cycle previous window
- terminal scrollback preview (kitty only)
- optional app filter:
dfzf-windows --app firefox - optional
--no-first-item: keep the cursor on the first listed window instead of preselecting the previously focused one (useful for filtered launchers likedfzf-windows --app terminal --no-first-item) - optional
--show-hidden: includedfzf-hiddenwindows for this invocation only (session-local, does not touch the persistentctrl-hstate); pairs well with an app filter, e.g.dfzf-windows --app dfzf-hidden --show-hidden --no-first-item - optional
--kitty-companions: also list kittyx companion shells (kitty windows hidden behind their parent in a tab), shown as↳ <title>right after the window hosting them;enterjumps to the companion,ctrl-kcloses it. Opt-in since each listing then queries kitty's remote control (kitty_socket, ~0.1s), e.g.dfzf-windows --app terminal --no-first-item --kitty-companions --persistent(macOS): started by the Dfzf spoon for its windows switcher (Dfzf.switcher), not meant to be run by hand
keybindings:
-
?: toggle a keybinding cheatsheet in the header -
Return: focus window -
ctrl-b: toggle color blue -
ctrl-g: toggle color green -
ctrl-o: toggle color orange -
ctrl-r: toggle color red -
B: filter color blue -
G: filter color green -
O: filter color orange -
R: filter color red -
ctrl-k: kill window -
alt-K: kill every window matching the query (all the visible ones) -
ctrl-u: toggle urgent (yellow color) -
ctrl-h: toggle hidden (show/hidedfzf-hiddenwindows) -
ctrl-i: toggle important (red color) -
ctrl-j: preview windows -
escape: return to current windows (works after previews) -
ctrl-t: will toggle tilling to the multi-selected windowssudo apt install jq ripgrep
Scrollbacks
Scrollbacks let you fuzzy-search across all your terminal histories (Kitty only) and focus the right one — great for digging up lost work from vague command memories.
?: toggle a keybinding cheatsheet in the header- requires
allow_remote_control yesandlisten_on unix:/tmp/kittyinkitty.conf; every kitty instance hosting a window is queried (dfzf popups excluded). Override the socket path withkitty_socket='/tmp/kitty-{pid}'in~/.config/dfzf/dfzf.conf - on macOS, kitty windows are matched to their OS window by id, so all tabs and splits of a single kitty window are searched and accepting a line switches to the right tab
sudo apt install ripgrepHub
The hub lets you launch any dfzf command with a single keystroke — one keybinding to rule them all.
Clipboard
- list latest mails (📎 marks mails with attachments)
- preview mails (headers filtered + body decoded through
mml read) ?: toggle a keybinding cheatsheet in the headerctrl-j: preview html mails in the browserctrl-d: download attachments to himalaya'sdownloads-dir(default~/Downloads)ctrl-k: move the selected mail toTrash(himalaya v2 droppedmessage delete)ctrl-o: move the selected mail to another folder (nested folder picker, same asctrl-l; pick e.g.Junkor any mailbox). Aborting the picker cancels the move.ctrl-l: switch the displayed folder (nested folder picker)ctrl-w: compose a new mailctrl-r: reply ·ctrl-alt-r: reply all ·ctrl-f: forward (each opens$EDITORin a tiled terminal). On exit:enter/ssends,ereopens the editor,aaborts. Quitting the editor without changing the draft cancels too. A failed send (MML syntax error, SMTP rejection) returns to that prompt instead of losing the draft, andaon an edited draft saves it under~/.local/state/dfzf/.ctrl-s: server-side search across the whole folder (himalaya query). The prompt shows🔍; an empty query clears it. Changing folder (ctrl-l) resets the search. fzf still fuzzy-filters the results locally.- syntax:
subject|body|from|to <txt>·date|after <yyyy-mm-dd>·flag <f>· combine withand/or/not· sort withorder by date desc - examples:
from enedis and subject facture—body rdv after 2026-01-01 order by date desc - quote multi-word patterns:
subject "en cours"(unquoted is a parse error)
- syntax:
alt-a: show only mails with attachments. The prompt shows📎; press again to clear. Combines withctrl-s, andctrl-lresets it.- himalaya's query language has no attachment clause (and
--has-attachmentonly fills the 📎 column, it does not filter), so this one is applied locally:dfzf-mail-loadfetches a window of up to 500 envelopes and paginates the matches itself.
- himalaya's query language has no attachment clause (and
Requires himalaya v2 and mml: v2 moved composition out of himalaya, so
ctrl-w / ctrl-r / ctrl-f build the draft with mml templates, open
$EDITOR, compile it with mml compile and hand the MIME to
himalaya message send. mml compose / reply / forward are not used: their
post-edit menu only offers save/preview/edit/abort, and sending is not one of
the options. Configure your identity, signature and quoting style in
~/.config/mml/config.toml.
sudo apt install jqhimalaya and mml ship as release tarballs, not apt packages: https://github.com/pimalaya/himalaya · https://github.com/pimalaya/mml
Password-store
?: toggle a keybinding cheatsheet in the headerReturn: copy contentctrl-o: copy the current OTP code (requires the pass-otp extension)ctrl-j: preview content- works with any password CLI exposing a flat entry listing and compatible
showcommands
sudo apt install pass wl-clipboardDefault commands use gopass when installed, so entries of every gopass mount are listed.
Otherwise they use pass show, listing $PASSWORD_STORE_DIR (default ~/.password-store) with fd.
You can override them for another backend in ~/.config/dfzf/dfzf.conf.
Example forcing pass:
pass_list_cmd='fd -e gpg -t f --base-directory ~/.password-store | sed "s|\.gpg$||"'
pass_preview_cmd='pass show'
pass_show_password_cmd='pass show'
pass_otp_cmd='pass otp'Notifications
- list notification ordered
?: toggle a keybinding cheatsheet in the headerReturn: notification actionctrl-k: kill notificationalt-K: kill every notification matching the query (all the visible ones)ctrl-h: toggle notif history
sudo apt install jq mako-notifierTo reach alt-K with ctrl-shift-k (cmd-shift-k when Cmd is turned into
Ctrl), remap it in the dfzf kitty windows only (fzf cannot tell
ctrl-shift-k from ctrl-k):
#~/.config/kitty/kitty.conf
map --when-focus-on cmdline:dfzf- ctrl+shift+k send_key alt+shift+k
On macOS, Notification Center is read through
notif (Accessibility
API, granted to the terminal running dfzf); there is no history (ctrl-h).
brew install coryfklein/tap/notifTasks
Manage caldav tasks:
?: toggle a keybinding cheatsheet in the headerctrl-t: new taskctrl-e: edit taskctrl-k: delete taskctrl-d: set status done for taskctrl-r: sync tasks with remote caldavctrl-l: choose the collection
pip install todoman vdirsyncerLauncher
- list desktop applications
- fire application
?: toggle a keybinding cheatsheet in the header
sudo apt install jq gawkTools
Set of tools not related with fzf, but useful even to drop the sway bar.
- resource usage: top, htop, gotop ...
- calendar: khal, calcurse ...
- clock: tty-clock ...
- wifi
- bluetooth
- fetch: fastfetch
Terminal Management
dfzf-term provides two terminal integrations for different work contexts: project-specific tasks in companion terminals and general tasks in a shared global terminal.
Companion Terminals (project-specific work):
- One terminal per window, attached to any application (IDE, browser, etc.)
- Auto-detects working directory: JetBrains
[/path/to/project], Neovim- NVIMsuffix, Terminal path patterns, defaults to home - Toggles between split vertical and stacked layouts (stacked allows fullscreen switching between windows)
Ctrl + /- Toggle layout |Shift + Ctrl + /- Kill the companion- Automatically moves away any non-companion windows that might be added inadvertently during toggle operations
Global Terminal (general tasks):
- Single floating scratchpad terminal shared across workspaces
- 90% screen size, centered and floating
dfzf-term scratchpad [terminal_command]- Toggle visibility- Works across sway/i3, independent of companion terminals
Git Repository Management
`dfzf-git` provides intelligent git repository integration with lazygit in a scratchpad terminal.Smart Repository Detection:
- Asks kitty (remote control) for the active tab's cwd when the focused window is kitty, so titles rewritten by TUIs don't matter
- Automatically detects git repository from focused window context
- Extracts directory paths from window titles (JetBrains
[/path/to/project], Neovim- NVIMsuffix, etc.) - Recursively searches upward for
.gitfolder from detected directory - Falls back to current working directory if no git repository found from window context
Scratchpad Integration:
- Single floating lazygit terminal shared across workspaces
- 90% screen size, centered and floating
dfzf-git- Toggle lazygit in detected git repository- Automatically opens lazygit in the root of the detected git repository
- Works across sway/i3, uses
dfzf-gitapp_id to avoid conflicts with other terminals
Example Usage:
# Bind to a key (e.g., Alt+g)
bindsym $mod+g exec dfzf-gitLazygit Options: pass extra lazygit CLI args (e.g. start view, screen mode):
# ~/.config/dfzf/dfzf.conf
lazygit_args='status --screen-mode=full'kitty Integration: requires allow_remote_control yes and listen_on unix:/tmp/kitty in kitty.conf; otherwise window titles are used. Override the socket path if needed ({pid} is the kitty instance pid):
# ~/.config/dfzf/dfzf.conf
kitty_socket='/tmp/kitty-{pid}'Install mise then run:
mise installThis sets up pre-commit hooks and bump2version automatically — no manual pip install or venv needed.
Run the test suite with mise run test (needs jq, fd, perl; mise
provides Lua). Tests live in tests/<area>/test_*.sh|lua, picked up by
tests/run.sh.
dfzfis the combination ofdmenu andfzf- dfzf-daemon comes from i3-back
- dfzf-launcher comes from sway-launcher-desktop
- wofi-scripts has inspired dfzf-windows
- swayr: a window-switcher & more for sway
- i3-tools: switch to previous window
This project is licensed under the GNU General Public License v3.0.















