From b67f5a2c05b1ac3e1af5f1d04f883d3bfd33ba6b Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 25 Jan 2023 10:35:26 +0100 Subject: [PATCH] Run setbg as systemd service file --- home/.config/hypr/hyprland.conf | 1 - home/.config/systemd/user/wallpaper.service | 11 +++++++++++ .../user/wm-ready.target.wants/wallpaper.service | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 home/.config/systemd/user/wallpaper.service create mode 120000 home/.config/systemd/user/wm-ready.target.wants/wallpaper.service diff --git a/home/.config/hypr/hyprland.conf b/home/.config/hypr/hyprland.conf index d7b9f1b..bb8c505 100644 --- a/home/.config/hypr/hyprland.conf +++ b/home/.config/hypr/hyprland.conf @@ -16,7 +16,6 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK exec-once = systemctl --user start xdg-desktop-portal-hyprland exec-once = systemctl --user start wm-ready.target -exec-once = setbg exec-once = sleep 2 && eww open bar0 #exec-once = eww open bar1 diff --git a/home/.config/systemd/user/wallpaper.service b/home/.config/systemd/user/wallpaper.service new file mode 100644 index 0000000..c38aaf7 --- /dev/null +++ b/home/.config/systemd/user/wallpaper.service @@ -0,0 +1,11 @@ +[Unit] +Description="Wallpaper setter" +PartOf=graphical-session.target + +[Service] +ExecStart=%h/.local/bin/scripts/gui/setbg +Type=oneshot +RemainAfterExit=false + +[Install] +WantedBy=wm-ready.target diff --git a/home/.config/systemd/user/wm-ready.target.wants/wallpaper.service b/home/.config/systemd/user/wm-ready.target.wants/wallpaper.service new file mode 120000 index 0000000..f6f6b82 --- /dev/null +++ b/home/.config/systemd/user/wm-ready.target.wants/wallpaper.service @@ -0,0 +1 @@ +/home/itsdrike/.config/systemd/user/wallpaper.service \ No newline at end of file