-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
I've written my postdock hook which is executed perfectly, only not if thinkpad-dock runs automatically on laptop docking. To be clear I've tested with one simple command in hook which sends notify-osd with text "Dock is On" or "Dock is Off". It behaves this way:
- Undock button is pressed, laptop disconnected from dock - main script works, hook works, notification is present;
- Laptop is putted back to dock - main script works, hook doesn't, notification not present;
<thinkpad-dock on>is executed in terminal - main script works, hook works, notification is present.
My postdock hook has this structure:
#!/bin/bash
case "$1" in
on)
notify-send -u normal -t 3000 "Dock is ON"
;;
off)
notify-send -u normal -t 3000 "Dock is OFF"
;;
esac