From f2ec92a22d10032e9e6d2f73bc0c28a8915ecf1e Mon Sep 17 00:00:00 2001 From: rokosun Date: Tue, 26 Dec 2023 05:22:49 +0000 Subject: [PATCH] Change delay from 5 seconds to 3 seconds --- layoutSwitcher.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layoutSwitcher.nim b/layoutSwitcher.nim index 9992ba1..914f814 100644 --- a/layoutSwitcher.nim +++ b/layoutSwitcher.nim @@ -121,8 +121,8 @@ proc enableLayout(args: tuple[layoutName: string, app: AppState]) {.thread.} = # Restart mate-hud if runCommand("/usr/bin/killall", ["mate-hud"]) == 0: discard runCommand("/usr/bin/setsid", ["-f", "/usr/lib/mate-hud/mate-hud"]) - # Wait 5 seconds for the effects to take place on screen - sleep(5000) + # Wait 3 seconds for the effects to take place on screen + sleep(3000) sendNotification(appID, "Layout Switcher", layoutName & " layout was enabled", icon = iconsDir / layoutName.toLowerAscii() & "-layout.png")