koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.31k stars 210 forks source link

How to use other modifier keys along with hyper key? #194

Open jaideeprana opened 2 years ago

jaideeprana commented 2 years ago

I want to use hyper + e key to launch htop in alacritty terminal and hyper + shift + e key to launch alacritty terminal only.

But after applying the following config only htop command is working, is there any way to achieve this? This will unlock lot of possibilities for me.

# Launch : Htop in alacritty Alacrity terminal
hyper - e : /Applications/Alacritty.app/Contents/MacOS/alacritty -e htop

# Launch : Alacrity terminal
hyper + shift - e : /Applications/Alacritty.app/Contents/MacOS/alacritty
ninjaguppy commented 2 years ago

I got something like this working. Instead of hyper you want to do something like

# Launch : Htop in alacritty Alacrity terminal
rcmd + rshift + ralt + rctrl - e : /Applications/Alacritty.app/Contents/MacOS/alacritty -e htop

# Launch : Alacrity terminal
rcmd + rshift + ralt + rctrl + lshift - e : `/Applications/Alacritty.app/Contents/MacOS/alacritty

Then make sure that your hyper key is set to give the right version of the modifier keys. I assume that this could work with the right/lefts swapped but I set it up with r-hyper so I could do all of the combos with my left hand.