Hi, and thanks in advance. First of all, I’m new to Linux, Endeavour, etc.
I’ve been experimenting with hyprland + waybar on EOS (no DE installed). I want to run a systemd timer that will launch a script that kills and restarts waybar. When I run the script from the command line, it works fine. But when I run it as a service, it kills waybar, but waybar does not relaunch.
The systemd timer and service units are installed in ~/.config/systemd/user/
I think this has something to do with the environment variables used by systemd, but I cannot figure it out.
Here is the service unit:
[Service]
Type=oneshot
ExecStart=/home/kirkham/dotfiles/scripts/get_bing_image.sh
[Install]
WantedBy=bingwallpaper.timer