Skip to content
fzf wrapper to launch apps defined on .desktop files
C Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
example.gif
fzf_launcher.c
pyfzf_launcher.py
setup.py

README.md

pyfzf-launcher

This is a very simple python wrapper around fzf to pick and launch an app through swaywm (or i3) IPC features.

How?

It retrieves all the information it needs by parsing .desktop files from /usr/share/applications/ and then from $HOME/.local/share/applications for an easier way of overwritting default values.

Installation

  1. Clone this repository
git clone https://github.com/eskuero/pyfzf_launcher
  1. Install with pip after entering the newly created folder
pip3 install --user .
  1. You could also compile the C version and place the generated executable on your PATH
gcc fzf_launcher.c -o $HOME/.local/bin/fzf-launcher

Usage

Launch with the command

pyfzf-launcher

Since it's meant as an app launcher is recommended to use it in combination with a terminal emulator window floating in the screen. You can pass to it any argument that fzf would accept. Per example:

konsole
	--profile "Pop-up" \
	-e pyfzf-launcher \
		-i \
		--layout=reverse \
		--prompt "Launch: " \
		--color="bg+:#073642,bg:#002b36,spinner:#719e07,hl:#586e75"

Replace as needed to use the C executable name of your choice. Will open a konsole window, with all the settings from the profile "Pop-up" and execute the launcher enabling case insensitive search, arranging the options by alphabetical order, using the string "Launch: " as custom prompt and a set of colors that will look like this:

You can’t perform that action at this time.