[system] fix: external mode for displayselect
This commit is contained in:
parent
81e5498349
commit
fa919171a2
@ -44,10 +44,11 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
|
||||
}
|
||||
|
||||
default() {
|
||||
primary=$(echo "$allposs" | grep -w "connected primary" | awk '{ print $1 }')
|
||||
[ -z "$primary" ] && primary=$(echo "$allposs" | grep -w "connected primary" | awk '{ print $1 }')
|
||||
secondary=$(echo "$screens" | grep -v -w "$primary")
|
||||
direction="left"
|
||||
rotation="normal"
|
||||
|
||||
setup
|
||||
}
|
||||
|
||||
@ -55,9 +56,7 @@ external() {
|
||||
internal=$(echo "$screens" | dmenu -i -p "Select internal display:")
|
||||
screens=$(echo "$screens" | grep -v -w "eDP-1")
|
||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||
xrandr --output $primary --primary
|
||||
|
||||
default
|
||||
xrandr --output $primary --primary && default
|
||||
}
|
||||
|
||||
setup() {
|
||||
|
Reference in New Issue
Block a user