-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve INSTALLATION documentation, add swapfile support and some min…
…or fixes (#130)
- Loading branch information
Showing
16 changed files
with
563 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
DEVICES_ID=$(xinput list | grep -iE "syn.*t|Elan TrackPoint" | awk '{print substr($6,4)}') | ||
|
||
MATCHED_DEVICES=$(xinput list | grep -iE "syn.*t|Elan TrackPoint") | ||
if [ -n "${MATCHED_DEVICES}" ]; then | ||
for DEVICE_LINE in ${MATCHED_DEVICES}; do | ||
DEVICES_ID=$(echo "${DEVICE_LINE}" | awk '{match($0,"id=([0-9]+)",m)}END{print m[1]}') | ||
if [ -n "${DEVICES_ID}" ]; then | ||
STATUS=-1 | ||
for DEVICE_ID in ${DEVICES_ID}; do | ||
if [ ${STATUS} -eq -1 ]; then | ||
STATUS=$(xinput list-props ${DEVICES_ID} | grep "Device Enabled" | awk '{print $4}') | ||
fi | ||
|
||
if [ ${STATUS} -eq 0 ]; then | ||
xinput enable ${DEVICES_ID} | ||
elif [ ${STATUS} -eq 1 ]; then | ||
xinput disable ${DEVICES_ID} | ||
fi | ||
done | ||
fi | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
CUR_STATE=$(gsettings get org.gnome.desktop.peripherals.touchpad send-events) | ||
NEW_STATE=$([ "${CUR_STATE}" = "'enabled'" ] && echo "'disabled'" || echo "'enabled'") | ||
|
||
gsettings set org.gnome.desktop.peripherals.touchpad send-events "${NEW_STATE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.