Sway Integration
Raffi integrates seamlessly with the Sway window manager, allowing you to launch applications with a simple keybinding.
Configuration
Section titled “Configuration”Add the following configuration to your Sway config file (typically ~/.config/sway/config):
set $menu raffi -pset $super Mod4bindsym $super+Space exec $menu | xargs swaymsg exec --How It Works
Section titled “How It Works”raffi -pruns Raffi in print-only mode, which outputs the selected command instead of executing it directly- The output is piped to
xargs swaymsg exec --to execute the command via Sway’s IPC interface $super+Spacebinds the launcher to Super (Windows/Command key) + Space
Customization
Section titled “Customization”Using a Different Keybinding
Section titled “Using a Different Keybinding”You can change the keybinding to any combination you prefer:
# Use Super+D insteadbindsym $super+d exec $menu | xargs swaymsg exec --
# Use Alt+Spacebindsym Mod1+Space exec $menu | xargs swaymsg exec --Additional Raffi Options
Section titled “Additional Raffi Options”You can pass additional flags to Raffi in the $menu variable:
# Disable icons for faster startupset $menu raffi -p -I
# Use a custom config fileset $menu raffi -p -c ~/.config/raffi/custom.yaml
# Use the native UI instead of Fuzzelset $menu raffi -p -u nativeTesting
Section titled “Testing”After adding the configuration:
- Reload your Sway config:
swaymsg reload - Press
Super+Spaceto launch Raffi - Select an application and press Enter to launch it
Troubleshooting
Section titled “Troubleshooting”Launcher doesn’t appear
Section titled “Launcher doesn’t appear”- Ensure Raffi is installed and in your
$PATH - If using Fuzzel mode (default), verify Fuzzel is installed
- Check Sway logs:
journalctl --user -u sway
Applications don’t launch
Section titled “Applications don’t launch”- Test the command manually:
raffi -p | xargs swaymsg exec -- - Verify
swaymsgis working:swaymsg -t get_version