Here my situation, I wan't to use simple (to use and remember) shortcuts for my: os/wm, terminal emulator (optional) and terminal multiplexer.
To achieve this I choose to use Meta as a context aware shortcut prefix (no more conflicts, replicable shortcut depending of the context).
I use zellij as multiplexer, kitty or wezterm as terminal and niri or windows depending of the os. As zellij and kitty/wezterm supports kitty keyboard protocol I want to map for example :
- os layer:
Meta (default) -> Meta
- term layer (optional):
Meta -> kitty_super
- multiplexer layer:
Meta -> kitty_hyper
I made some tries without results, I is possible, am I going the right way ?
# Hyper = 0x7d
# Hyper = 0xe05c
Hyper = 57444
# Toggle Virtual1 on `Shift + F1`
Shift{F1} >> Virtual1
Virtual1{Shift{F1}} >> !Virtual1
Virtual1{Meta} >> "\x1b[104;9u"
Second issue, but less blocking, is it possible to get the PID of the focused window (or maybe there is another solution). I want if possible to discriminate term and term + multiplexer.
Here my situation, I wan't to use simple (to use and remember) shortcuts for my: os/wm, terminal emulator (optional) and terminal multiplexer.
To achieve this I choose to use
Metaas a context aware shortcut prefix (no more conflicts, replicable shortcut depending of the context).I use zellij as multiplexer, kitty or wezterm as terminal and niri or windows depending of the os. As zellij and kitty/wezterm supports kitty keyboard protocol I want to map for example :
Meta(default) ->MetaMeta->kitty_superMeta->kitty_hyperI made some tries without results, I is possible, am I going the right way ?
Second issue, but less blocking, is it possible to get the PID of the focused window (or maybe there is another solution). I want if possible to discriminate term and term + multiplexer.