From f77271b249e0c08368573c22a5c34f0737d3a766 Mon Sep 17 00:00:00 2001 From: chayleaf Date: Wed, 17 May 2023 03:23:56 +0700 Subject: [PATCH] sway: fix mumble ptt --- home/common/i3-sway.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/common/i3-sway.nix b/home/common/i3-sway.nix index 4882c59..f1e66fa 100644 --- a/home/common/i3-sway.nix +++ b/home/common/i3-sway.nix @@ -287,7 +287,9 @@ in // (forAllModifiers "--inhibited --no-repeat --release " "Scroll_Lock" - "exec ${pkgs.mumble}/bin/mumble rpc stoptalking") + # mumble remembers the amount of times starttalking has been called, + # and if stoptalking isn't called for some reason, calling it one time stops being enough + "exec ${pkgs.mumble}/bin/mumble rpc stoptalking && ${pkgs.mumble}/bin/mumble rpc stoptalking") // { "${modifier}+c" = "exec ${rofiSway}/bin/rofi -show calc -no-show-match -no-sort -no-persist-history"; "${modifier}+Print" = "exec ${grimshot}/bin/grimshot copy area";