[Newm] New keybinding for connecting to bluetooth devices

This commit is contained in:
Lucien Cartier-Tilet 2023-03-10 15:12:52 +01:00
parent a27ce0ddf0
commit b3312d539e
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -141,7 +141,11 @@ leader: str = "L-Spc "
def key_bindings(layout: Layout) -> list[tuple[str, Callable[[], Any]]]: def key_bindings(layout: Layout) -> list[tuple[str, Callable[[], Any]]]:
return [ return [
("L-Return", lambda: os.system("kitty &")), ("L-Return", lambda: os.system("kitty &")),
(leader + "a r", lambda: run_shell("rofi -combi-modi drun,window -show combi")), (leader + "a r b", lambda: run_shell("bluetooth-connect")),
(
leader + "a r r",
lambda: run_shell("rofi -combi-modi drun,window -show combi"),
),
(leader + "a b", lambda: run_shell("firefox")), (leader + "a b", lambda: run_shell("firefox")),
(leader + "a d", lambda: run_shell("discord")), (leader + "a d", lambda: run_shell("discord")),
(leader + "a e", lambda: run_shell("emacsclient -c")), (leader + "a e", lambda: run_shell("emacsclient -c")),