diff options
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 \ |