diff options
author | Florian Pritz <bluewind@xinu.at> | 2021-05-25 13:52:04 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2021-05-25 13:54:08 +0200 |
commit | 61f47e3366ef2e9f9f61906839dbd854884df9e0 (patch) | |
tree | f0a82190a064fa2e24030675fee3fc739135b9a1 | |
parent | fc70284d53d6d17f19afe90c41654e63011f8ff0 (diff) | |
download | bin-61f47e3366ef2e9f9f61906839dbd854884df9e0.tar.gz bin-61f47e3366ef2e9f9f61906839dbd854884df9e0.tar.xz |
connect-screen: Mark one screen as primary for i3bar config
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | connect-screen | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/connect-screen b/connect-screen index 58fa6cd..8c65078 100755 --- a/connect-screen +++ b/connect-screen @@ -13,6 +13,7 @@ has_dp2=$(xrandr | grep '^DP2 connected') if [[ $has_hdmi2 && $has_dp1 ]]; then xrandr --output DP1 --right-of eDP1 --auto xrandr --output HDMI2 --right-of DP1 --auto + xrandr --output DP1 --primary else if [[ $has_hdmi2 ]]; then xrandr --output HDMI2 --right-of eDP1 --auto @@ -25,6 +26,8 @@ else if [[ $has_dp2 ]]; then xrandr --output DP2 --right-of eDP1 --auto fi + + xrandr --output eDP1 --primary fi xkbcomp .xkbmap "$DISPLAY" |