Skip to content
/ irongen Public

Searches XDG_DATA_DIRS/applications and XDG_DATA_HOME/applications and lets user pick one using fzf

Notifications You must be signed in to change notification settings

ig1711/irongen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

irongen

Searches XDG_DATA_DIRS/applications and XDG_DATA_HOME/applications and lets user pick one using fzf

irongen.mp4

Installation

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

Configuration

  • Create a directory called irongen in your XDG_CONFIG_HOME direcotory (default $HOME/.config)

  • Create a file named config inside that irongen directory

  • Put your configuration in the config file

Check example config for details

Usage

This program depends on fzf
Make sure you have it installed and it is included in $PATH

With Hyprland window manager

  • 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

With Sway window manager

  • 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

About

Searches XDG_DATA_DIRS/applications and XDG_DATA_HOME/applications and lets user pick one using fzf

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages