fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.34k stars 213 forks source link

Combine multiple actions in one hotkey #274

Open abhijeetviswam opened 3 years ago

abhijeetviswam commented 3 years ago

Is it possible to somehow combine the 2 actions into a single hotkey?

When I am switching a window to the active view, more often than not I would need to switch focus to the active window. Currently, I am using the following hotkeys, one after the other. Config_hotkey=#Enter::View_shuffleWindow(1) Config_hotkey=#+Enter::View_activateWindow(1)

It would be easier if I can configure both actions into one hotkey. Something like this. Config_hotkey=#Enter::View_shuffleWindow(1)&View_activateWindow(1)

joten commented 3 years ago

Is it possible to somehow combine the 2 actions into a single hotkey?

Not in Config.ini, but if you are running bug.n as a script (Main.ahk) with AutoHotkey, you may add a hotkey like the following to the section "Key definitions" in Config.ahk:

#Enter::
    View_shuffleWindow(1)
    View_activateWindow(1)
Return
abhijeetviswam commented 3 years ago

Not in Config.ini, but if you are running bug.n as a script (Main.ahk) with AutoHotkey, you may add a hotkey like the following to the section "Key definitions" in Config.ahk:

Thanks, this is exactly what I was looking for. I still think it would be nice to have this ability in Config.ini itself when running bug.n directly from the exe file, and not using Main.ahk.