This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
########################################################################## | |
##* crouton.conf defaults are: ## | |
# DELAY=10 # delay desired number of seconds before starting ## | |
# CHROOT=xenial # enter desired chroot to start ## | |
# START_DE=startxfce4 # enter desired Desktop Envirnoment to use ## | |
# CHROOT_APP=none # enter desired chroot application to run ## | |
# XMETHOD=default # enter the desired XMETHOD (xorg,xephyr,xiwi) ## | |
# RUN_STATE=y # change to 'n' to disable running $CHROOT ## | |
########################################################################## |
This file contains hidden or 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 | |
## for default bash | |
##!/data/data/com.termux/files/usr/bin/bash | |
# for termux bash | |
## Gist link to 'name': | |
# https://gist.github.com/DennisLfromGA/a12b511d2b4a27e67a53 | |
# name - A script to gather pertinent system info. | |
# |
This file contains hidden or 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
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
description "mount CHRUBUNTU on /var/ChrUbuntu-sda7" | |
author "[email protected] & [email protected]" | |
start on starting boot-services | |
task | |
script |
This file contains hidden or 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 | |
# Chromecast-daily-wallpaper | |
# Version 0.2 | |
# | |
# Simple command line tool which will grab a random wallpaper | |
# from the Chromecast backgrounds repository at | |
# https://github.com/dconnolly/chromecast-backgrounds | |
# | |
# Depends: lynx, nitrogen | |
# |
This file contains hidden or 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 sh | |
ipurl="icanhazip.com" | |
if hash dig 2>/dev/null; then cmd="dig +short myip.opendns.com @resolver1.opendns.com"; ipurl="" | |
elif hash curl 2>/dev/null; then cmd="curl" | |
elif hash wget 2>/dev/null; then cmd="wget -qO-" | |
else echo "*** No app (dig,curl,wget) found - exiting ***"; exit 2; fi | |
[ -n "$1" ] && echo -n "$cmd $ipurl - " | |
eval $cmd $ipurl || ret=$? | |
exit $ret |