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")