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
#!/bin/sh | |
### | |
### Set Variables | |
APPLICATION="${0##*/}" | |
CHECK_IT='' | |
CHROOT_LOC=/usr/local/chroots | |
[ -d /var/crouton/chroots ] && CHROOT_LOC='/var/crouton/chroots' | |
[ ! -d "$CHROOT_LOC" ] && CHROOT_LOC='' | |
CHROOT_NAME='' |
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
#!/bin/sh -e | |
# Copyright (c) 2014 The crouton Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
APPLICATION="${0##*/}" | |
CHROOT_LOC='/usr/local/chroots' | |
[ -d /var/crouton/chroots ] && CHROOT_LOC='/var/crouton/chroots' | |
[ ! -d "$CHROOT_LOC" ] && CHROOT_LOC='' | |
CHROOT_NAME='' |
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
### Script to turn ON the Trackpad device | |
#DEBUG='' | |
[[ -n "$DEBUG" ]] && set -x | |
TP='' | |
#VERBOSE='' | |
## Get Trackpad ID number from Crosh | |
#+ Write a custom crosh script to get the trackpad id number | |
echo "crosh <<ENDCROSH | |
inputcontrol --names |
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
### Script to turn OFF the Trackpad device | |
#DEBUG='' | |
[[ -n "$DEBUG" ]] && set -x | |
TP='' | |
#VERBOSE='' | |
## Get Trackpad ID number from Crosh | |
#+ Write a custom crosh script to get the trackpad id number | |
echo "crosh <<ENDCROSH | |
inputcontrol --names |
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
### Script to get the status of the Trackpad device | |
#DEBUG='' | |
[[ -n "$DEBUG" ]] && set -x | |
TP='' | |
TPSTATE='' | |
TPSTATUS='' | |
#VERBOSE='' | |
## Get Trackpad ID number from Crosh | |
#+ Write a custom crosh script to get the trackpad id number |
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
# Turnoff the Chromebook Touchpad - always - | |
# NOTE: 'tpstat.sh' & 'tpoff.sh' should be in your PATH | |
## Get state of Touchpad - 1=on, 0=off | |
TP_STATE="`tpstat.sh`" | |
# | |
# Turn off Touchpad | |
if [ "$TP_STATE" = 0 ]; # TOUCHPAD IS OFF | |
then echo "'touchpad' already off" | |
else echo "Turning Touchpad off to ignore inadvertent touching..." ; tpoff.sh | |
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
#!/bin/bash | |
set -e | |
BNAME=$(basename $0) | |
USAGE=" | |
Usage: sudo bash $0 [ChrUbuntu size in GB] | |
$BNAME will resize the Chromebook to add or delete ChrUbuntu partitons. | |
$BNAME should be run from VT2 when NOT logged in. |
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
#!/bin/sh | |
echo_e='/bin/echo -e' | |
####################### | |
## Declare Variables ## | |
####################### | |
APPLICATION="${0##*/}" | |
Chroot_loc=/usr/local/chroots | |
[ -d /var/crouton/chroots ] && Chroot_loc='/var/crouton/chroots' | |
[ ! -d "$Chroot_loc" ] && Chroot_loc='' | |
Chroot_par="$(dirname "${Chroot_loc}")" |
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
curtty="`cat /sys/class/tty/tty0/active`" | |
echo "tty's on vt's are:" | |
ps -CX -CXorg -otname= | sort | nl | sed "s/$curtty/$curtty <--/" |
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/env bash | |
# screenFetch | |
# Script to fetch system and theme settings for screenshots in most mainstream | |
# Linux distributions. | |
# Copyright (c) 2010-2012 Brett Bohnenkamper < kittykatt AT archlinux DOT us > | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
OlderNewer