Searches XDG_DATA_DIRS/applications
and XDG_DATA_HOME/applications
and lets user pick one using fzf
irongen.mp4
Install rust and cargo then use the command
cargo install --git https://github.com/ig1711/irongen.git
This will install irongen
in $CAGRO_HOME/bin
(by default $HOME/.cargo/bin
). Include this installtion directory in your $PATH
-
Create a directory called
irongen
in yourXDG_CONFIG_HOME
direcotory (default$HOME/.config
) -
Create a file named
config
inside thatirongen
directory -
Put your configuration in the
config
file
Check example config for details
This program depends on fzf
Make sure you have it installed and it is included in $PATH
- Create a bash script like this
$HOME/runfzf.sh
#!/bin/bash
exec hyprctl dispatch exec $(irongen)
- Edit the
hyprland.conf
to include these
# add a window rule to open the terminal in floating mode
windowrule=float,floating-term
# add a keybind to call the script created previously, using a terminal. I'm using foot term here
# the -a flag for foot term allows to set an `app-id`
# the -w flag is for window size
bind=SUPER,D,exec,foot -w 1366x768 -a floating-term $HOME/runfzf.sh
- Create a bash script like this
$HOME/runfzf.sh
#!/bin/bash
exec swaymsg -q -- exec $(irongen)
- Edit the
sway/config
file to include these
# add a window rule to open the terminal in floating mode
for_window [app_id="floating-term"] floating enable
# add a keybind to call the script created previously, using a terminal. I'm using foot term here
# the -a flag for foot term allows to set an `app-id`
# the -w flag is for window size
bindsym $mod+d exec foot -w 1366x768 -a floating-term $HOME/runfzf.sh