diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-06-13 11:52:33 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-06-13 11:52:33 -0400 |
commit | 0f0409e3ffef48bd20b3aa31d03cb1ac6e35f385 (patch) | |
tree | c244fd397b0cebb0dcbac339960c1442dae1a842 /toggle-docked.sh | |
parent | 1a26090ba7df4b076f011b8f9ac5d4d81dc14a02 (diff) | |
download | scripts-0f0409e3ffef48bd20b3aa31d03cb1ac6e35f385.tar.xz scripts-0f0409e3ffef48bd20b3aa31d03cb1ac6e35f385.zip |
cleanup, updated locking/autolocking
Diffstat (limited to 'toggle-docked.sh')
-rwxr-xr-x | toggle-docked.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toggle-docked.sh b/toggle-docked.sh index 4e2cb89..beb0965 100755 --- a/toggle-docked.sh +++ b/toggle-docked.sh @@ -2,6 +2,8 @@ hasVGA=$(xrandr | grep VGA-0 | cut -w -f2) if [ "$hasVGA" = "connected" ]; then + killall xautolock + autolocker.sh -d & xrandr \ --output VGA-0 \ --mode 1024x768 \ @@ -23,6 +25,8 @@ if [ "$hasVGA" = "connected" ]; then --output DP-4 \ --off else + killall xautolock + autolocker.sh & xrandr \ --output VGA-0 \ --off \ |