Update gammastep-toggle
This commit is contained in:
@@ -1,9 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SERVICE=gammastep-refresh.service
|
SERVICE=gammastep-refresh.service
|
||||||
|
TIMER=gammastep-refresh.timer
|
||||||
|
|
||||||
if systemctl --user is-active --quiet "$SERVICE"; then
|
if systemctl --user is-active --quiet "$SERVICE"; then
|
||||||
|
# KAPAT
|
||||||
|
systemctl --user stop "$TIMER"
|
||||||
systemctl --user stop "$SERVICE"
|
systemctl --user stop "$SERVICE"
|
||||||
else
|
else
|
||||||
|
# AÇ
|
||||||
systemctl --user start "$SERVICE"
|
systemctl --user start "$SERVICE"
|
||||||
|
systemctl --user enable --now "$TIMER"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user