dotfiles/.config/Code/User/History/-5e62438e/Fsz7.md
RafayAhmad7548 4f46de8d00 update
2024-09-09 16:59:28 +05:00

1.2 KiB

morebinds | A Hyprland plugin

morebinds is a hyprland plugin that allows you to set keymaps for double tapping mod keys i.e. shift, ctrl, alt, esc, super.

Installation

With hyprpm

Run the following

hyprpm add git@github.com:RafayAhmad7548/morebinds.git
hyprpm enable morebinds
hyprpm reload

Manually

make sure you have hyprland headers installed, if you don't know how check the wiki. clone the repo and build it

git clone git@github.com:RafayAhmad7548/morebinds.git
cd morebinds/build
make
hyprctl plugin load absolute/path/to/libmorebinds.so/in/morebinds/build

Configuration

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