aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/systemd/user/wob.service
blob: 3a4268f8cb4d3c44bfa5e9ab4636b5cf706bbdcb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Wayland overlay bar (volume / brightness OSD)
PartOf=graphical-session.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY

[Service]
Type=simple
ExecStartPre=/usr/bin/sh -c 'rm -f "$XDG_RUNTIME_DIR/wob.sock" && mkfifo "$XDG_RUNTIME_DIR/wob.sock"'
ExecStart=/usr/bin/sh -c 'exec /usr/bin/wob <"$XDG_RUNTIME_DIR/wob.sock"'
ExecStopPost=/usr/bin/rm -f %t/wob.sock
Restart=on-failure
RestartSec=2s

[Install]
WantedBy=sway-session.target