mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 17:25:34 +00:00
Removed duplicate files
This commit is contained in:
parent
975cf91c1c
commit
376e0d1303
@ -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
|
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user