From 0909c9f59b1edb52ca4c447b7aadca466c35625d Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 25 Jan 2023 18:54:40 +0100 Subject: [PATCH] Start eww bar as service --- home/.config/hypr/hyprland.conf | 3 --- home/.config/systemd/user/eww-bar.service | 14 ++++++++++++++ .../user/wm-ready.target.wants/eww-bar.service | 1 + 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 home/.config/systemd/user/eww-bar.service create mode 120000 home/.config/systemd/user/wm-ready.target.wants/eww-bar.service diff --git a/home/.config/hypr/hyprland.conf b/home/.config/hypr/hyprland.conf index 205c253..37af542 100644 --- a/home/.config/hypr/hyprland.conf +++ b/home/.config/hypr/hyprland.conf @@ -15,9 +15,6 @@ exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CUR exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE exec-once = systemctl --user start wm-ready.target -exec-once = sleep 2 && eww open bar0 -#exec-once = eww open bar1 - exec-once = aa-notify -p exec-once = udiskie -A -T # exec-once = nm-applet --indicator diff --git a/home/.config/systemd/user/eww-bar.service b/home/.config/systemd/user/eww-bar.service new file mode 100644 index 0000000..ab09a73 --- /dev/null +++ b/home/.config/systemd/user/eww-bar.service @@ -0,0 +1,14 @@ +[Unit] +Description="Open eww bar" +PartOf=graphical-session.target +After=eww.service + +[Service] +ExecStart=/usr/local/bin/eww open bar0 +Type=oneshot +RemainAfterExit=false +Restart=on-failure +RestartSec=3s + +[Install] +WantedBy=wm-ready.target diff --git a/home/.config/systemd/user/wm-ready.target.wants/eww-bar.service b/home/.config/systemd/user/wm-ready.target.wants/eww-bar.service new file mode 120000 index 0000000..f88f42e --- /dev/null +++ b/home/.config/systemd/user/wm-ready.target.wants/eww-bar.service @@ -0,0 +1 @@ +/home/itsdrike/.config/systemd/user/eww-bar.service \ No newline at end of file