Change delay from 5 seconds to 3 seconds

This commit is contained in:
Rokosun 2023-12-26 05:22:49 +00:00
parent 43c356debb
commit f2ec92a22d
1 changed files with 2 additions and 2 deletions

View File

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