better swaybg management in wl

This commit is contained in:
Paul Wilde 2024-03-21 10:19:50 +00:00
parent c96d39f05d
commit 4303d16781
2 changed files with 3 additions and 2 deletions

View file

@ -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:

View file

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