Change delay from 5 seconds to 3 seconds
This commit is contained in:
parent
43c356debb
commit
f2ec92a22d
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user