summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2014-05-28 21:50:04 +0600
committerAnton Bobov <abobov@gmail.com>2014-05-28 21:50:04 +0600
commitf43355c65406710bfdfcdfe40f188eb13c9bf2ae (patch)
tree90119070a28d1efdca797f010eb92364d469ef4b
parent7d3e90a48b065e9ab15e8ea5610b67751913374b (diff)
Update backup ignore list and change screen switch script.
-rwxr-xr-xbackup-lima1
-rwxr-xr-xf7-script.sh3
2 files changed, 3 insertions, 1 deletions
diff --git a/backup-lima b/backup-lima
index 5bece8b..e1557d9 100755
--- a/backup-lima
+++ b/backup-lima
@@ -10,6 +10,7 @@ DEST=anton@bonn:/mnt/mirror/backup/lima
echo /dev
echo /home/anton/Music
echo /home/anton/Videos
+ echo /home/anton/VirtualBox VMs/
echo /home/anton/.cache
echo /home/anton/.thumbnails
echo /home/anton/.local/share/Trash
diff --git a/f7-script.sh b/f7-script.sh
index 6607b0c..db4022f 100755
--- a/f7-script.sh
+++ b/f7-script.sh
@@ -26,6 +26,7 @@ screen_external() {
}
screen_internal() {
xrandr --output "$INTERNAL" --auto
+ xrandr --output "$EXTERNAL" --off
}
screen_mirror() {
xrandr --output "$INTERNAL" --auto
@@ -68,7 +69,7 @@ EXTERNAL_STATE=$(screen_get_state "$EXTERNAL")
EXTERNAL_CONNECTED=$(is_connected "$EXTERNAL_STATE")
if [ -z "$EXTERNAL_CONNECTED" ] ; then
- echo "External monitor $EXTERNAL not connected." >&2
+ screen_internal
exit 0
fi