From 8cd45abe6ffb12f9287c128f2887144ed6bf38a1 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Thu, 29 Jul 2021 08:45:34 +0200 Subject: [PATCH] Fix emacs gc at startup --- files/init.el | 3 +-- files/scripts/fix_mouse.sh | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/files/init.el b/files/init.el index 2bf6506..78446d7 100644 --- a/files/init.el +++ b/files/init.el @@ -10,8 +10,7 @@ ;; Set the gc threshold high initially so the init.el can just be ;; loaded in one move -(setq gc-cons-threshold most-positive-fixnum ; 2^61 bytes - gc-cons-percentage 0.6) +(setq gc-cons-threshold most-positive-fixnum) ; 2^61 bytes ;; Lower the gc threshold again afterwards (add-hook 'emacs-startup-hook diff --git a/files/scripts/fix_mouse.sh b/files/scripts/fix_mouse.sh index 65927c1..cb2aa12 100755 --- a/files/scripts/fix_mouse.sh +++ b/files/scripts/fix_mouse.sh @@ -1,3 +1,8 @@ #!/bin/sh -xinput --set-prop 25 'libinput Accel Profile Enabled' 0, 1 +if [ ! "$1" ]; then + echo "No device ID given ..." + exit 1 +fi + +xinput --set-prop $1 'libinput Accel Profile Enabled' 0, 1