From 952fd00c5d159096c407be3fc57acf62921eabf6 Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Sun, 27 Mar 2022 19:12:00 -0700 Subject: [PATCH] Changed capture to put screenshots in a subdirectory Also both machines seem to be using DISPLAY=:1 now. Finally minor changes to sshconfig --- bin/capture-area.sh | 2 +- bin/capture-window.sh | 2 +- bin/lightsout.sh | 8 ++++---- rc/sshconfig | 7 ++----- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/bin/capture-area.sh b/bin/capture-area.sh index 4ed0f95..8540f6d 100755 --- a/bin/capture-area.sh +++ b/bin/capture-area.sh @@ -1,2 +1,2 @@ #!/bin/bash -gnome-screenshot -caf /System/tmp/Screenshot-$(date +%F@%T).png +gnome-screenshot -caf /System/tmp/Screenshots/$(date +%F@%T).png diff --git a/bin/capture-window.sh b/bin/capture-window.sh index 46ad937..ce75bdd 100755 --- a/bin/capture-window.sh +++ b/bin/capture-window.sh @@ -1,2 +1,2 @@ #!/bin/bash -gnome-screenshot -cwf /System/tmp/Screenshot-$(date +%F@%T).png +gnome-screenshot -cwf /System/tmp/Screenshots/$(date +%F@%T).png diff --git a/bin/lightsout.sh b/bin/lightsout.sh index bd09301..126f943 100755 --- a/bin/lightsout.sh +++ b/bin/lightsout.sh @@ -9,11 +9,11 @@ if [ "$1" = "-a" ]; then fi fi -if [ $host = "earth" ]; then +#if [ $host = "earth" ]; then export DISPLAY=:1 -else - export DISPLAY=:0 -fi +#else +# export DISPLAY=:0 +#fi sleep 2 /usr/local/bin/setdpms.sh diff --git a/rc/sshconfig b/rc/sshconfig index fd83394..6b6598f 100644 --- a/rc/sshconfig +++ b/rc/sshconfig @@ -1,11 +1,11 @@ StrictHostKeyChecking no LogLevel ERROR -Host mars earth home defaria.com +Host mars earth home defaria.com sandboxu ForwardX11 yes ForwardX11Trusted yes -Host jupiter cpanel github.com sandbox sandboxal sandboxu +Host jupiter cpanel github.com sandbox sandboxal ForwardX11 no ForwardX11Trusted no @@ -32,9 +32,6 @@ Host sandboxal Hostname 10.2.99.106 IdentityFile ~/.ssh/cpanelkey -Host enterprise.cpanel.net - IdentityFile ~/.ssh/cpanelkey - Host 10.2.* sandbox* ForwardAgent yes StrictHostKeyChecking no -- 2.17.1