waybar: add missing hyprsunset-toggle script - dotfiles - 🍚 personal arsenal of "rice"
HTML git clone https://git.drkhsh.at/dotfiles.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 5dfda94dbffab83cddfcde30de6a1d9a77ac535a
DIR parent 7f4949568a73ca31e0cb3c05dd4a27a3ae5ebb2a
HTML Author: drkhsh <drkhsh@escpe.net>
Date: Mon, 25 Nov 2024 12:29:42 +0100
waybar: add missing hyprsunset-toggle script
Diffstat:
A waybar/.local/bin/hyprsunset-toggle | 9 +++++++++
1 file changed, 9 insertions(+), 0 deletions(-)
---
DIR diff --git a/waybar/.local/bin/hyprsunset-toggle b/waybar/.local/bin/hyprsunset-toggle
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+if pgrep hyprsunset >/dev/null; then
+ pkill hyprsunset
+ notify-send -t 700 "Hyprsunset stopped"
+else
+ hyprsunset -t 5500 &
+ notify-send -t 700 "Hyprsunset started"
+fi