Merge branch 'dev' into thesis
system: fix external mode for displayselect
This commit is contained in:
commit
862e29b012
@ -44,11 +44,12 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
|
|||||||
}
|
}
|
||||||
|
|
||||||
default() {
|
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")
|
secondary=$(echo "$screens" | grep -v -w "$primary")
|
||||||
direction="left"
|
direction="left"
|
||||||
rotation="normal"
|
rotation="normal"
|
||||||
mode="mode 2560x1440"
|
mode="mode 2560x1440"
|
||||||
|
|
||||||
setup
|
setup
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,9 +57,7 @@ external() {
|
|||||||
internal=$(echo "$screens" | dmenu -i -p "Select internal display:")
|
internal=$(echo "$screens" | dmenu -i -p "Select internal display:")
|
||||||
screens=$(echo "$screens" | grep -v -w "eDP-1")
|
screens=$(echo "$screens" | grep -v -w "eDP-1")
|
||||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||||
xrandr --output $primary --primary
|
xrandr --output $primary --primary && default
|
||||||
|
|
||||||
default
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
|
Reference in New Issue
Block a user