From 1480aec7b5568d3ba798eae45b99faae62975017 Mon Sep 17 00:00:00 2001 From: Kaan Genc Date: Thu, 17 Mar 2022 14:24:48 -0400 Subject: [PATCH] move blueman & kdeconnectd to systemd user services --- sway/config | 8 ++------ systemd/user/blueman-applet.service | 10 ++++++++++ systemd/user/kdeconnectd.service | 10 ++++++++++ 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 systemd/user/blueman-applet.service create mode 100644 systemd/user/kdeconnectd.service diff --git a/sway/config b/sway/config index dbaa10b..aa5200a 100644 --- a/sway/config +++ b/sway/config @@ -48,21 +48,17 @@ output DP-3 { # Enable XWayland xwayland enable +# Pass all variables to dbus & systemd to run graphical user services +exec dbus-update-activation-environment --all --systemd # Enable screencast support exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway # Night color (red shift) exec wlsunset -l 40 -L -83 -# Bluetooth -exec blueman-applet - # Screen sharing selection exec bash -c "/usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-wlr" -# kdeconnect -exec bash -c "nohup /usr/lib/kdeconnectd >/dev/null &" - # # Example configuration: # diff --git a/systemd/user/blueman-applet.service b/systemd/user/blueman-applet.service new file mode 100644 index 0000000..4b73a41 --- /dev/null +++ b/systemd/user/blueman-applet.service @@ -0,0 +1,10 @@ +[Unit] +Description=Run blueman applet. +After=graphical-session.target + +[Service] +type=basic +ExecStart=/usr/bin/blueman-applet + +[Install] +WantedBy=graphical-session.target diff --git a/systemd/user/kdeconnectd.service b/systemd/user/kdeconnectd.service new file mode 100644 index 0000000..da8f118 --- /dev/null +++ b/systemd/user/kdeconnectd.service @@ -0,0 +1,10 @@ +[Unit] +Description=Run kdeconnectd. +After=graphical-session.target + +[Service] +type=basic +ExecStart=/usr/lib/kdeconnectd + +[Install] +WantedBy=graphical-session.target