sway: add playerctl mode

This commit is contained in:
Leonardo Eugênio 2023-01-24 10:09:12 -03:00
parent 0ff17cd6df
commit 3fe411010d

View file

@ -150,7 +150,15 @@ in
"q" = ""; "q" = "";
"m" = "exec volumesh -t"; "m" = "exec volumesh -t";
"s" = "exec ${pkgs.pulse_sink}/bin/pulse_sink"; "s" = "exec ${pkgs.pulse_sink}/bin/pulse_sink";
} // {
"p" = "mode playerctl";
}; };
playerctl = code_binds
(return_mode {
"space" = "exec ${pkgs.playerctl}/bin/playerctl toggle";
"escape" = "";
"q" = "";
});
passthrough = { passthrough = {
"${mod}+escape" = "mode default;exec notify-send 'Passthrough off'"; "${mod}+escape" = "mode default;exec notify-send 'Passthrough off'";
}; };