feat(display): add builtin monitor usage
This commit is contained in:
parent
a7c28966f5
commit
dd5f64a671
2 changed files with 8 additions and 5 deletions
10
display.sh
10
display.sh
|
|
@ -44,19 +44,21 @@ function main() {
|
||||||
"center"|"middle")
|
"center"|"middle")
|
||||||
echo "Setting dual display center"
|
echo "Setting dual display center"
|
||||||
xrandr \
|
xrandr \
|
||||||
--output "$main" --auto --above "$secondary" \
|
--output "$internal" --auto --above "$secondary" \
|
||||||
--output "$secondary" --primary
|
--output "$secondary" --primary \
|
||||||
;;
|
;;
|
||||||
"ultra")
|
"ultra")
|
||||||
echo "Setting single display mode (ultrawide)"
|
echo "Setting single display mode (ultrawide)"
|
||||||
xrandr --output "$secondary" --off \
|
xrandr --output "$secondary" --off \
|
||||||
--output "$main" --auto
|
--output "$main" --auto \
|
||||||
|
--output "$internal" --off
|
||||||
--mode 3840x2160
|
--mode 3840x2160
|
||||||
;;
|
;;
|
||||||
"solo")
|
"solo")
|
||||||
echo "Setting single display mode (secondaryal only)"
|
echo "Setting single display mode (secondaryal only)"
|
||||||
xrandr --output "$main" --off \
|
xrandr --output "$main" --off \
|
||||||
--output "$secondary" --auto
|
--output "$secondary" --auto \
|
||||||
|
--output "$internal" --off
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Setting display to preferred size (1680x1050)"
|
echo "Setting display to preferred size (1680x1050)"
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,5 @@ helper_modelfile="${HOME}/path-to/Modelfile-helper"
|
||||||
|
|
||||||
# display monitors (run `yo d list` to find available)
|
# display monitors (run `yo d list` to find available)
|
||||||
secondary=HDMI-1
|
secondary=HDMI-1
|
||||||
main=DP-1-1
|
main=HDMI-0
|
||||||
|
internal=*eDP-1-1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue