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
|
return pid.output
|
||||||
|
|
||||||
proc killCurrSwayBGPID(pid: string) =
|
proc killCurrSwayBGPID(pid: string) =
|
||||||
|
sleep 2000
|
||||||
discard execCmd("kill " & pid)
|
discard execCmd("kill " & pid)
|
||||||
|
|
||||||
|
|
||||||
|
@ -88,7 +89,7 @@ proc setLast() =
|
||||||
notify.send("Setting Background to Last", LAST)
|
notify.send("Setting Background to Last", LAST)
|
||||||
if isWayland():
|
if isWayland():
|
||||||
let pid = getCurrSwayBGPID()
|
let pid = getCurrSwayBGPID()
|
||||||
let swaybg = "killall swaybg; swaybg -m fill -i " & LAST.escape & " &"
|
let swaybg = "swaybg -m fill -i " & LAST.escape & " &"
|
||||||
discard execCmd(swaybg)
|
discard execCmd(swaybg)
|
||||||
killCurrSwayBGPID(pid)
|
killCurrSwayBGPID(pid)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "2.0.6"
|
version = "2.0.7"
|
||||||
author = "Paul Wilde"
|
author = "Paul Wilde"
|
||||||
description = "A set of informational tools"
|
description = "A set of informational tools"
|
||||||
license = "AGPL-3.0-or-later"
|
license = "AGPL-3.0-or-later"
|
||||||
|
|
Loading…
Reference in a new issue