Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Toggle-LidSwitch

The script is designed to toggle the configuration of Lid Switch between suspend and lock, and vice versa on linux.

description

sometimes you want to only lock the screen when you close the lid, and sometimes you want to suspend the system. This script is designed to switch between these two configurations.

In my case, when I needed to ssh into my laptop, I wanted to lock the screen when I close the lid, so I decided to write this script.

Usage

chmod +x toggleLidSwitch.sh
./toggleLidSwitch.sh

About

The script is designed to toggle the configuration of Lid Switch between suspend and lock, and vice versa on linux.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages