mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: give rofi another chance
This commit is contained in:
@@ -15,7 +15,7 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
|
||||
# Mirror displays using native resolution of external display and a scaled
|
||||
# version for the internal display
|
||||
if [ "$mirror" = "yes" ]; then
|
||||
external=$(echo "$screens" | dmenu -i -p "Optimize resolution for:")
|
||||
external=$(echo "$screens" | dmenu -i -p "Optimize resolution for")
|
||||
internal=$(echo "$screens" | grep -v "$external")
|
||||
|
||||
res_external=$(xrandr --query | sed -n "/^$external/,/\+/p" | \
|
||||
@@ -38,7 +38,7 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
|
||||
|
||||
else
|
||||
|
||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display")
|
||||
secondary=$(echo "$screens" | grep -v "$primary")
|
||||
direction=$(query_direction | dmenu -i -p "What side of $primary should $secondary be on?")
|
||||
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction" "$primary" --auto --scale 1.0x1.0
|
||||
|
||||
Reference in New Issue
Block a user