Hyprland Integration
Raffi works perfectly with Hyprland, providing a fast and elegant application launcher for your Wayland environment.
Configuration
Section titled “Configuration”Add the following to your Hyprland configuration file (typically ~/.config/hypr/hyprland.conf):
$super = SUPERbind = $super, R, exec, (val=$(raffi -pI); echo $val | grep -q . && hyprctl dispatch exec "$val")How It Works
Section titled “How It Works”raffi -pIruns Raffi in print-only mode with icons disabled for faster startup- The selected command is stored in the
$valvariable grep -q .checks if the output is non-empty (user didn’t cancel)hyprctl dispatch execlaunches the selected application through Hyprland’s IPC- The keybinding is
Super+R
Customization
Section titled “Customization”Using a Different Keybinding
Section titled “Using a Different Keybinding”You can bind Raffi to any key combination:
# Use Super+Spacebind = $super, Space, exec, (val=$(raffi -pI); echo $val | grep -q . && hyprctl dispatch exec "$val")
# Use Super+D (like dmenu/rofi)bind = $super, D, exec, (val=$(raffi -pI); echo $val | grep -q . && hyprctl dispatch exec "$val")
# Use Alt+Spacebind = ALT, Space, exec, (val=$(raffi -pI); echo $val | grep -q . && hyprctl dispatch exec "$val")Enable Icons
Section titled “Enable Icons”If you prefer to use icons (slightly slower startup):
bind = $super, R, exec, (val=$(raffi -p); echo $val | grep -q . && hyprctl dispatch exec "$val")Use Native UI
Section titled “Use Native UI”To use Raffi’s built-in native interface instead of Fuzzel:
bind = $super, R, exec, (val=$(raffi -p -u native); echo $val | grep -q . && hyprctl dispatch exec "$val")Use Custom Config
Section titled “Use Custom Config”Specify a custom configuration file:
bind = $super, R, exec, (val=$(raffi -pI -c ~/.config/raffi/custom.yaml); echo $val | grep -q . && hyprctl dispatch exec "$val")Testing
Section titled “Testing”After adding the configuration:
- Reload Hyprland:
hyprctl reload - Press
Super+Rto 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”- Verify Raffi is installed:
which raffi - If using Fuzzel mode (default), ensure Fuzzel is installed
- Check Hyprland logs:
journalctl --user -xe
Applications launch multiple times or don’t launch
Section titled “Applications launch multiple times or don’t launch”- The
grep -q .check prevents execution when you cancel the launcher - Ensure you’re using the full command including the conditional check
- Test manually:
val=$(raffi -pI); echo $val | grep -q . && hyprctl dispatch exec "$val"
Command line appears in launcher
Section titled “Command line appears in launcher”- This is normal when using Fuzzel mode with complex shell commands
- Consider using the native UI with
-u nativefor a cleaner experience