Created
January 21, 2013 01:29
Revisions
-
altercation created this gist
Jan 21, 2013 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash case $* in ac_adapter*) power auto ;; # unplug or plug ac cord *LID*close) system sleep ;; # shut laptop lid *TBLT*on*) displays tablet on ;; # rotate to tablet mode *TBLT*off*) displays tablet off ;; # rotate to laptop mode *0000500c) trigger Print ;; # undock tablet pen *0000500b) trigger shift+Print ;; # dock tablet pen esac