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

View File

@ -121,8 +121,8 @@ proc enableLayout(args: tuple[layoutName: string, app: AppState]) {.thread.} =
# Restart mate-hud # Restart mate-hud
if runCommand("/usr/bin/killall", ["mate-hud"]) == 0: if runCommand("/usr/bin/killall", ["mate-hud"]) == 0:
discard runCommand("/usr/bin/setsid", ["-f", "/usr/lib/mate-hud/mate-hud"]) discard runCommand("/usr/bin/setsid", ["-f", "/usr/lib/mate-hud/mate-hud"])
# Wait 5 seconds for the effects to take place on screen # Wait 3 seconds for the effects to take place on screen
sleep(5000) sleep(3000)
sendNotification(appID, "Layout Switcher", layoutName & " layout was enabled", sendNotification(appID, "Layout Switcher", layoutName & " layout was enabled",
icon = iconsDir / layoutName.toLowerAscii() & "-layout.png") icon = iconsDir / layoutName.toLowerAscii() & "-layout.png")