From 6cc7222676032a71a84f85adbab372ba41e338e8 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Sun, 12 Feb 2023 21:26:28 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index b49f5d0..db8d252 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -1464,6 +1464,11 @@ def desktop_services(argv): ]) if len(self.events) > 0: + while True: + if subprocess.call(['swaymsg', '-t', 'get_version']) == 0: + break + time.sleep(0.5) + for o in self.events: if o == 't1': #if self.force_idle():