diff options
-rw-r--r-- | 50-docking-station.rules | 3 | ||||
-rw-r--r-- | dock-action.py | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/50-docking-station.rules b/50-docking-station.rules index 06021dd..9deb886 100644 --- a/50-docking-station.rules +++ b/50-docking-station.rules @@ -1,2 +1,5 @@ ACTION=="add", SUBSYSTEM=="net", ATTRS{addr_assign_type}=="0", ATTRS{addr_len}=="6", ATTRS{address}=="ac:91:a1:fe:97:bf" RUN+="/usr/local/bin/dock-action.py connected work-desk" ACTION=="remove", SUBSYSTEM=="net", ENV{ID_NET_NAME_MAC}=="enxac91a1fe97bf" RUN+="/usr/local/bin/dock-action.py disconnected work-desk" + +ACTION=="add", SUBSYSTEM=="net", ATTRS{addr_assign_type}=="0", ATTRS{addr_len}=="6", ATTRS{address}=="ac:91:a1:fe:9a:23" RUN+="/usr/local/bin/dock-action.py connected lab-bench" +ACTION=="remove", SUBSYSTEM=="net", ENV{ID_NET_NAME_MAC}=="enxac91a1fe9a23" RUN+="/usr/local/bin/dock-action.py disconnected lab-bench" diff --git a/dock-action.py b/dock-action.py index 454cab8..4a18a4b 100644 --- a/dock-action.py +++ b/dock-action.py @@ -14,6 +14,13 @@ DEVICES = { "eDP" : "off" }, "mac_address" : "ac:91:a1:fe:97:bf" + }, + "lab-bench" : { + "displays" : { + "DisplayPort-2" : "auto", + "eDP" : "off" + }, + "mac_address" : "ac:91:a1:fe:9a:23" } } |