summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-10-27 23:11:40 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-10-27 23:11:40 +0800
commite56b8e2acb9af4ccdcc50415901cb65df18bcb26 (patch)
treee91b3a7890def6d5742bbdc8dab064727bdd53ef
parentdec3fb3dedac4db029b8f5d99077b79ae159cb88 (diff)
add: hyprsunset.sh
-rwxr-xr-xhyprsunset.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hyprsunset.sh b/hyprsunset.sh
new file mode 100755
index 0000000..680e9cb
--- /dev/null
+++ b/hyprsunset.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+time=$(date +%H)
+
+if [ $time -ge 6 -a $time -lt 20 ]; then
+ killall hyprsunset
+else
+ hyprsunset &
+fi