aboutsummaryrefslogtreecommitdiff
path: root/src/check_docked.sh
diff options
context:
space:
mode:
authorspv <spv@spv.sh>2025-10-02 18:47:49 -0400
committerspv <spv@spv.sh>2025-10-02 18:47:49 -0400
commit5eb78c5fc8ee50707f3c18ab60b57fd89f1d489e (patch)
treeec0ce6b83b5a2a508ba6b4611fe70d4b4f9a468d /src/check_docked.sh
mein klein dockd
Diffstat (limited to 'src/check_docked.sh')
-rwxr-xr-xsrc/check_docked.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_docked.sh b/src/check_docked.sh
new file mode 100755
index 0000000..81019dc
--- /dev/null
+++ b/src/check_docked.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env zsh
+
+lsusb | grep -q "ThinkPad Ultra Dock" && echo docked || echo undocked