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
#!/usr/bin/python | |
from subprocess import Popen, PIPE | |
import re | |
terminal_call = ['xinput', 'list'] | |
regex_pattern = re.compile(r'.+TouchPad.+id=(\d+)') | |
sec_regex_pattern = re.compile(r'.*Device (Enabled|Disabled).+:\s(\d+)') | |
pp = Popen(terminal_call, stdout=PIPE) |
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
# adb aliases | |
alias adb='/opt/android-sdk/platform-tools/./adb' | |
alias adb-start='adb start-server' | |
alias adb-stop='adb kill-server' | |
alias adb-restart='adb kill-server start-server' | |
adbfind() { | |
package=$(adb -d shell pm list packages | grep -wE "$1($|\s)" | sed "s/package://g"); | |
pathtopackage=$(adb -d shell pm path $package | sed "s/package://g"); | |
echo $pathtopackage; |
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
# System-wide .bashrc file for interactive bash(1) shells. | |
# To enable the settings / commands in this file for login shells as well, | |
# this file has to be sourced in /etc/profile. | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# check the window size after each command and, if necessary, | |
# update the values of LINES and COLUMNS. |
NewerOlder