aboutsummaryrefslogtreecommitdiff
path: root/src/dock_checker.sh
diff options
context:
space:
mode:
authorspv <spv@spv.sh>2025-12-03 15:10:12 -0500
committerspv <spv@spv.sh>2025-12-03 15:10:12 -0500
commitb0fbe74d91a53a7453c9dced6f75fa4cb78a6688 (patch)
tree67969c938065621ac9a89555ebab25b5e1318315 /src/dock_checker.sh
parent54b82dcc5990225575fd822cced0ab4bff0bed46 (diff)
now with c!
Diffstat (limited to 'src/dock_checker.sh')
-rwxr-xr-xsrc/dock_checker.sh34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/dock_checker.sh b/src/dock_checker.sh
deleted file mode 100755
index 5b4f1f8..0000000
--- a/src/dock_checker.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env zsh
-
-SCRIPT_DIR=$(dirname $(realpath $0))
-cd $SCRIPT_DIR
-
-rm .{un,}docked
-
-while true; do
- if [ "$(./check_docked.sh)" = "docked" ]; then
- if [ -e .docked ]; then
- continue
- fi
-
- echo docking...
-
- rm -f .undocked
- sh/docked.sh
-
- touch .docked
- else
- if [ -e .undocked ]; then
- continue
- fi
-
- echo undocking...
-
- rm -f .docked
- sh/undocked.sh
-
- touch .undocked
- fi
-
- sleep 5
-done