ErikReider / SwayOSD

A GTK based on screen display for keyboard shortcuts like caps-lock and volume
GNU General Public License v3.0
541 stars 34 forks source link

Start swayos-server via systemd #83

Open spjz opened 3 months ago

spjz commented 3 months ago

I'm trying to start swayosd-server using a systemd service unit after starting Hyprland the same way, but can't seem to figure out the appropriate values.

The following service works if I start it manually inside my session, but fails when starting on login:

[Unit]
Description=SwayOSD Server Daemon
After=swayosd-libinput-backend.service
Wants=swayosd-libinput-backend.service

[Service]
ExecStart=/usr/bin/swayosd-server
Restart=on-failure

[Install]
WantedBy=default.target

Any idea what I should add or change to solve this?

spjz commented 3 months ago

Fixed it. Removing Wants allows the service to start at login.