summaryrefslogtreecommitdiffstats
path: root/dock-action.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dock-action.sh')
-rw-r--r--dock-action.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/dock-action.sh b/dock-action.sh
new file mode 100644
index 0000000..3b93398
--- /dev/null
+++ b/dock-action.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/bash
+
+if [ "$1" = "connected" ]; then
+ echo "Dock connected" >> /home/eddy/dock.log
+elif [ "$1" = "disconnected" ]; then
+ echo "Dock disconnected" >> /home/eddy/dock.log
+fi
+