diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-05-15 07:55:58 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-05-15 07:55:58 -0400 |
commit | 2930e933305e653f2f26deacd459dd100f257168 (patch) | |
tree | adb4f9afd05f66100fd93458e3125a075ebcd635 /toggle-docked.sh | |
parent | 680a167d6f72853eeab01970426028fc474c6005 (diff) | |
download | scripts-2930e933305e653f2f26deacd459dd100f257168.tar.xz scripts-2930e933305e653f2f26deacd459dd100f257168.zip |
updated i3blocks, fixed themer, added 6cord, combined docked and undocked into toggle-docked
Diffstat (limited to 'toggle-docked.sh')
-rwxr-xr-x | toggle-docked.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/toggle-docked.sh b/toggle-docked.sh new file mode 100755 index 0000000..4e2cb89 --- /dev/null +++ b/toggle-docked.sh @@ -0,0 +1,44 @@ +#!/bin/sh +hasVGA=$(xrandr | grep VGA-0 | cut -w -f2) + +if [ "$hasVGA" = "connected" ]; then + xrandr \ + --output VGA-0 \ + --mode 1024x768 \ + --pos 1920x312 \ + --rotate normal \ + --dpi 82 \ + --output DP-0 \ + --off \ + --output DP-1 \ + --off \ + --output DP-2 \ + --off \ + --output DP-3 \ + --primary \ + --mode 1920x1080 \ + --pos 0x0 \ + --rotate normal \ + --dpi 96 \ + --output DP-4 \ + --off +else + xrandr \ + --output VGA-0 \ + --off \ + --output DP-0 \ + --off \ + --output DP-1 \ + --off \ + --output DP-2 \ + --off \ + --output DP-3 \ + --primary \ + --mode 1920x1080 \ + --pos 0x0 \ + --rotate normal \ + --dpi 96 \ + --output DP-4 \ + --off +fi + |