Initial commit
This commit is contained in:
commit
209ba130c0
4852 changed files with 1517959 additions and 0 deletions
12
.config/ml4w/scripts/lid-improvements.sh
Executable file
12
.config/ml4w/scripts/lid-improvements.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
while IFS= read -r line; do
|
||||
# If the line starts with # and the next line is not the lines to be added
|
||||
if [[ $line == \#HandleLidSwitchDocked=ignore ]]; then
|
||||
# Add the new lines
|
||||
echo "HandleLidSwitchDocked=ignore" | sudo tee -a /etc/systemd/logind.conf > /dev/null
|
||||
fi
|
||||
if [[ $line == \#HoldoffTimeoutSec=5s ]]; then
|
||||
# Add the new lines
|
||||
echo "HoldoffTimeoutSec=5s" | sudo tee -a /etc/systemd/logind.conf > /dev/null
|
||||
fi
|
||||
done < /etc/systemd/logind.conf
|
||||
Loading…
Add table
Add a link
Reference in a new issue