From fe8c3b1be8884793e43c04788d6d4fa1239f4aa9 Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Sun, 24 Jun 2018 01:13:09 +0200 Subject: [PATCH] Remove enable tap to click --- config/autostart.sh | 2 -- setup.bash | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/config/autostart.sh b/config/autostart.sh index ae46a74..d1609b9 100755 --- a/config/autostart.sh +++ b/config/autostart.sh @@ -20,5 +20,3 @@ start plank # Compositing (cool shadows/smooth looks for windows) start xcompmgr -# Enable tap-to-click -xinput set-prop "DLL082A:01 06CB:76AF Touchpad" "libinput Tapping Enabled" 1 diff --git a/setup.bash b/setup.bash index ec7c258..71479c2 100755 --- a/setup.bash +++ b/setup.bash @@ -28,8 +28,13 @@ here() { dirname "$(readlink -f "${BASH_SOURCE[0]}")" } +config-dir() { + echo "$HOME/.config/openbox" +} + copy-config() { - declare config_dir="$HOME/config/openbox" + declare config_dir='' + config_dir="$(config-dir)" echo "=> Copying config" @@ -37,9 +42,19 @@ copy-config() { cp -r "$(here)/config/"* "$config_dir"/ } +add-custom-startup() { + declare startup_file='' + read -rep "Please provide a path to a custom startup script for your sessions (default: ~/.startup):" \ + startup_file + + [[ -z $startup_file ]] && startup_file="$HOME/.startup" + printf 'source "%s"\n' "$startup_file" >> "$(config-dir)/autostart.sh" +} + setup-openbox-for-user() { install-dependencies copy-config + add-custom-startup echo "=> Finished" }