diff --git a/layoutSwitcher.nim b/layoutSwitcher.nim index 72add27..0c6c8ba 100644 --- a/layoutSwitcher.nim +++ b/layoutSwitcher.nim @@ -1,4 +1,4 @@ -from std/os import symlinkExists, getConfigDir, `/`, sleep +from std/os import symlinkExists, getConfigDir, `/` from std/envvars import existsEnv, getEnv, delEnv, putEnv from std/options import Option, some, get, isNone from std/strutils import toLowerAscii, split @@ -121,8 +121,6 @@ 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 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")