zmk icon indicating copy to clipboard operation
zmk copied to clipboard

Feature request: Select previously active Bluetooth profile

Open dxmh opened this issue 4 years ago • 3 comments

It would be great to be able switch to the previously active Bluetooth profile.

For example — I’m typing away on profile 1, then I manually switch to profile 2 for a small task. I’d then like to get back to profile 1 using something like this:

&bt BT_SEL {{ previously active profile }}

This functionality would make the experience of switching back and forth between profiles similar to ctrl+tab window switching.

This could be useful also in macros, for example to pause the media on another host and return back to the current host:

macro_toggle_media: macro_toggle_media {
  compatible = "zmk,behavior-macro";
  label = "macro_toggle_media";
  #binding-cells = <0>;
  bindings = <&bt BT_SEL 1>, <&kp C_PLAY_PAUSE>, <&bt BT_SEL {{ previously active profile }}>;
};

dxmh avatar Apr 21 '21 19:04 dxmh

I like the idea. Prev and also next (some sort of history) would be awesome.

auipga avatar Nov 01 '21 21:11 auipga

I've added PR #2278 It works as expected. You can use index 255 to switch back to the previously used profile.

Dimentium avatar Apr 24 '24 07:04 Dimentium