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 characters
#!/bin/bash | |
# This script is for laptops only! | |
# It counts your displays. If you have only 1 display (the built-in), when you close the led the laptop will sleep. | |
# If you have at least <DISPLAYS_NUM> displays, hen you close the led nothing will happen. | |
# that's for cases that you forget your laptop not connected. | |
DISPLAYS_NUM=2 | |
`touch test` |