#!/usr/bin/env bash # Check if wlsunset service is active if systemctl --user is-active --quiet wlsunset; then # Service is running, stop it systemctl --user stop wlsunset else # Service is not running, start it systemctl --user start wlsunset fi # Send signal to waybar to update the display pkill -SIGRTMIN+8 waybar