monitor menu
This commit is contained in:
parent
3f15abf71f
commit
f1ee9580a2
1 changed files with 2 additions and 2 deletions
|
@ -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[@]}"
|
||||
|
|
Loading…
Add table
Reference in a new issue