morebinds is a hyprland plugin that allows you to set keymaps for double tapping mod keys i.e. shift, ctrl, alt, esc, super.
Run the following
hyprpm add [email protected]:RafayAhmad7548/morebinds.git
hyprpm enable morebinds
hyprpm reload
make sure you have hyprland headers installed, if you don't know how check the wiki. clone the repo and build it
git clone [email protected]:RafayAhmad7548/morebinds.git
cd morebinds/build
make
hyprctl plugin load absolute/path/to/libmorebinds.so/in/morebinds/build
The delay after in which a double tap will be registered is configurable and can be changed as follows in the hyprland.conf
plugin {
morebinds {
# the delay is in milliseconds
shift_delay = 200
super_delay = 400
alt_delay = 700
ctrl_delay = 200
esc_delay = 200
}
}
to set the command to be executed for single press or double press
plugin {
morebinds {
shift_single = firefox
shift_double = kitty
}
}
it is recommended not to use the default way to set keybind for single press of mod keys as it might be buggy with this plugin