From 376e0d130332496f835c77602cd27f535cfcff85 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Wed, 25 Sep 2019 17:52:24 -0400 Subject: [PATCH] Removed duplicate files --- i3/i3wm-config-gen.sh | 8 -------- i3/trackpad-toggle.sh | 33 --------------------------------- 2 files changed, 41 deletions(-) delete mode 100755 i3/i3wm-config-gen.sh delete mode 100755 i3/trackpad-toggle.sh diff --git a/i3/i3wm-config-gen.sh b/i3/i3wm-config-gen.sh deleted file mode 100755 index 28e24ee..0000000 --- a/i3/i3wm-config-gen.sh +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/bash - -# Load user settings from config file. -. ~/.config/settings.conf - -cat ~/.config/i3/shared.conf ~/.config/i3/${computer}.conf > ~/.config/i3/config - -i3-msg reload diff --git a/i3/trackpad-toggle.sh b/i3/trackpad-toggle.sh deleted file mode 100755 index 84355b0..0000000 --- a/i3/trackpad-toggle.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -# Get device id of Synaptics TrackPad -id=$(xinput list --id-only 'SynPS/2 Synaptics TouchPad') - -# Enables TrackPad -trackpadEnable() { - xinput set-prop $id "Device Enabled" 1 - exit -} - -# Disables TrackPad -trackpadDisable() { - xinput set-prop $id "Device Enabled" 0 - exit -} - -# Checks for disable flag -if [ ! -z $1 ] && [ $1 == '-d' ]; then - echo flag worked - trackpadDisable -fi - -# Convert to an arry -read -a trackPadState <<< "$(xinput --list-props $id | grep "Device Enabled")" -devEnabled=${devString_array[3]} - -# Flip the state of the TrackPad -if [ ${trackPadState[3]} -eq 1 ]; then - trackpadDisable -else - trackpadEnable -fi