1
0
Fork 0

monitor menu

This commit is contained in:
Vladimír Dudr 2024-03-19 21:21:32 +01:00
parent 3f15abf71f
commit f1ee9580a2

View file

@ -17,7 +17,7 @@ monitor="$(echo "$monitors" | rofi -dmenu -p "Choose a monitor")"
[[ -z "$monitor" ]] && exit
direction="$(echo -e 'left\nright\nabove\nbelow\noff' | rofi -dmenu -p "Where you want it")"
direction="$(echo -e 'left-of\nright-of\nabove\nbelow\noff' | rofi -dmenu -p "Where you want it")"
[[ -z "$direction" ]] && exit
@ -26,7 +26,7 @@ if [[ "$direction" = off ]]
then
action=(--off)
else
action=("--${direction}-of" "$primary" --auto)
action=("--${direction}" "$primary" --auto)
fi
xrandr --output "$monitor" "${action[@]}"