sway: Migrate exec{,_always} to systemd user units
This commit is contained in:
parent
d7e8485f6e
commit
751e824d57
|
@ -268,9 +268,3 @@ for_window [app_id="pavucontrol"] floating enable
|
||||||
# Start the systemd-user target for sway and import environment
|
# Start the systemd-user target for sway and import environment
|
||||||
# Makes service management a bit cleaner
|
# Makes service management a bit cleaner
|
||||||
exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"
|
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
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Bluetooth Manager Applet
|
||||||
|
BindsTo=sway-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=blueman-applet
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sway-session.target
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Fcitx5 Input Method Daemon
|
||||||
|
BindsTo=sway-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=fcitx5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sway-session.target
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue