From 5df2c385458e3787fab82c50e06adeb5b5a02088 Mon Sep 17 00:00:00 2001 From: xerus <27jf@pm.me> Date: Mon, 6 Apr 2020 09:35:42 +0200 Subject: [PATCH] Yadm: Add Bootstrap script --- .config/yadm/bootstrap | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .config/yadm/bootstrap diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap new file mode 100755 index 0000000..41a8103 --- /dev/null +++ b/.config/yadm/bootstrap @@ -0,0 +1,12 @@ + +# Enable REISUB and increase watch limit for Intellij & co +echo "kernel.sysrq=1" | sudo tee /etc/sysctl.d/60-sysrq.conf +echo "fs.inotify.max_user_watches=800000" | sudo tee /etc/sysctl.d/60-max-user-watches.conf +sudo sysctl --system + +# Update sudoers configuration +echo "Defaults editor=/usr/bin/nvim" | sudo tee /etc/sudoers.d/editor +echo "Defaults timestamp_timeout=20" | sudo tee /etc/sudoers.d/timeout + +# Stop logind from suspending my laptop +sudo sed -i 's/#HandleLidSwitch=suspend/HandleLidSwitch=ignore/' /etc/systemd/logind.conf