From 66028dbbbe541a76523d17c627cea79cae13b560 Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Fri, 26 Aug 2016 13:46:32 +0200 Subject: [PATCH] dont suspend on lid close --- install.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 11b91da..0ecc9b8 100755 --- a/install.sh +++ b/install.sh @@ -74,12 +74,21 @@ base_applications() { } +no_suspend() { + # https://wiki.debian.org/SystemdSuspendSedation + sudo sed -i "s/HandleLidSwitch=.*/HandleLidSwitch=ignore/" /etc/systemd/logind.conf + sudo sed -i "s/HandleLidSwitchDocked=.*/HandleLidSwitchDocked=ignore/" /etc/systemd/logind.conf + sudo systemctl restart systemd-logind.service +} + + install_i3() { - echo "update and installing i3wm..." + echo "update and installing i3wm and some tools..." apt-get update apt-get install -y \ feh \ + fswebcam \ i3 \ i3lock \ i3status \ @@ -93,6 +102,8 @@ install_i3() { apt-get autoremove apt-get autoclean apt-get clean + + no_suspend } install_docker() {