nixos/frame12/dotfiles/waybar/scripts/wlsunset-toggle.sh

13 lines
335 B
Bash
Executable File

#!/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