mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-01 13:54:22 +02:00
i3-companion: implement systemd notify
This commit is contained in:
parent
2f74d47a74
commit
358cf0629d
2 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,7 @@ import types
|
||||||
|
|
||||||
import i3ipc
|
import i3ipc
|
||||||
from i3ipc.aio import Connection
|
from i3ipc.aio import Connection
|
||||||
from systemd import journal
|
from systemd import journal, daemon
|
||||||
import ravel
|
import ravel
|
||||||
import dbussy
|
import dbussy
|
||||||
import xcffib
|
import xcffib
|
||||||
|
@ -1040,6 +1040,7 @@ async def main(options):
|
||||||
if event is StartEvent:
|
if event is StartEvent:
|
||||||
start_tasks.append(asyncio.create_task(fn(i3, event)))
|
start_tasks.append(asyncio.create_task(fn(i3, event)))
|
||||||
|
|
||||||
|
daemon.notify("READY=1")
|
||||||
await i3.main()
|
await i3.main()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,6 @@ Description=i3 companion
|
||||||
PartOf=graphical-session.target
|
PartOf=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=notify
|
||||||
ExecStart=%h/.config/i3/bin/i3-companion
|
ExecStart=%h/.config/i3/bin/i3-companion
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue