Skip to content

Commit

Permalink
Adding configuration for closing lid.
Browse files Browse the repository at this point in the history
I wish that closing lid of the PC will be ignored to be able to work
with external monitors without worrying about it.

Signed-off-by: Yoni Bettan <[email protected]>
  • Loading branch information
ybettan committed Dec 11, 2023
1 parent 40ce171 commit 55bd2f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ function define_gnome_tweaks {
fi
}

function configure_closed_lid_action {
# Set close-lid action to be ignored
sudo sed -i 's/#HandleLidSwitch\=suspend/HandleLidSwitch\=ignore/' /etc/systemd/logind.conf
}

function start_logitech_mouse {
git clone https://github.com/PixlOne/logiops.git /tmp/logiops
mkdir /tmp/logiops/build
Expand All @@ -48,4 +53,5 @@ start_cronjobs
start_insync
source_tmux_conf_file
define_gnome_tweaks
configure_closed_lid_action
start_logitech_mouse

0 comments on commit 55bd2f1

Please sign in to comment.