From 4303d16781368ec30711ac45617ddaf724c1a78a Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Thu, 21 Mar 2024 10:19:50 +0000 Subject: [PATCH] better swaybg management in wl --- src/util/wallpapurr.nim | 3 ++- wm_tools.nimble | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/wallpapurr.nim b/src/util/wallpapurr.nim index 4024b8b..28b9b0c 100644 --- a/src/util/wallpapurr.nim +++ b/src/util/wallpapurr.nim @@ -70,6 +70,7 @@ proc getCurrSwayBGPID(): string = return pid.output proc killCurrSwayBGPID(pid: string) = + sleep 2000 discard execCmd("kill " & pid) @@ -88,7 +89,7 @@ proc setLast() = notify.send("Setting Background to Last", LAST) if isWayland(): let pid = getCurrSwayBGPID() - let swaybg = "killall swaybg; swaybg -m fill -i " & LAST.escape & " &" + let swaybg = "swaybg -m fill -i " & LAST.escape & " &" discard execCmd(swaybg) killCurrSwayBGPID(pid) else: diff --git a/wm_tools.nimble b/wm_tools.nimble index f4eb1a8..dd86a75 100644 --- a/wm_tools.nimble +++ b/wm_tools.nimble @@ -1,6 +1,6 @@ # Package -version = "2.0.6" +version = "2.0.7" author = "Paul Wilde" description = "A set of informational tools" license = "AGPL-3.0-or-later"