better swaybg management in wl
This commit is contained in:
parent
c96d39f05d
commit
4303d16781
2 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue