sway: Migrate exec{,_always} to systemd user units

This commit is contained in:
Peter Cai 2022-10-30 21:34:42 -04:00
parent d7e8485f6e
commit 751e824d57
6 changed files with 48 additions and 6 deletions

View File

@ -268,9 +268,3 @@ for_window [app_id="pavucontrol"] floating enable
# Start the systemd-user target for sway and import environment
# Makes service management a bit cleaner
exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"
exec nm-applet --indicator
exec blueman-applet
exec mako --config ~/.config/mako/mako.conf
exec fcitx5
exec_always nwg-drawer -r

View File

@ -0,0 +1,9 @@
[Unit]
Description=Bluetooth Manager Applet
BindsTo=sway-session.target
[Service]
ExecStart=blueman-applet
[Install]
WantedBy=sway-session.target

View File

@ -0,0 +1,9 @@
[Unit]
Description=Fcitx5 Input Method Daemon
BindsTo=sway-session.target
[Service]
ExecStart=fcitx5
[Install]
WantedBy=sway-session.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=Mako Notification Daemon
BindsTo=sway-session.target
[Service]
Type=simple
ExecStart=mako --config %h/.config/mako/mako.conf
[Install]
WantedBy=sway-session.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=Indicator for NetworkManager
BindsTo=sway-session.target
[Service]
Type=simple
ExecStart=nm-applet --indicator
[Install]
WantedBy=sway-session.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=NWG Drawer Provider
BindsTo=sway-session.target
[Service]
ExecStart=nwg-drawer -r
KillMode=process
[Install]
WantedBy=sway-session.target