disp with configurable presentation default
This commit is contained in:
@@ -10,6 +10,7 @@ TEMPLATE='# configure the display names with "xrandr"
|
||||
MAIN=eDP-1
|
||||
ANALOG=VGA-1
|
||||
DIGITAL=DP-1
|
||||
PRESENTATION_RES=1920x1080
|
||||
|
||||
# You hay have to change ANALOG/DIGITAL in the outputs,
|
||||
# especially for Workstation choices
|
||||
@@ -21,7 +22,7 @@ WORKSTATIONRIGHT=$DIGITAL
|
||||
|
||||
_allon() {
|
||||
_list_connected | while read display; do
|
||||
_xrandr --output $display --auto
|
||||
_xrandr --output $display --auto --rotate normal
|
||||
done
|
||||
exit
|
||||
}
|
||||
@@ -59,7 +60,7 @@ _display_presentation() {
|
||||
_allon
|
||||
}
|
||||
_list_connected | while read display; do
|
||||
_xrandr --output $display --mode 1024x768 --pos 0x0 --gamma $g:$g:$g
|
||||
_xrandr --output $display --mode "$PRESENTATION_RES" --pos 0x0 --gamma $g:$g:$g
|
||||
done
|
||||
}
|
||||
_display_workstation() {
|
||||
@@ -198,7 +199,7 @@ if [ -z "$1" ]; then
|
||||
|
||||
0 Run "arandr" to setup manually
|
||||
1 Main display only ('$MAIN')
|
||||
2 Presentation: Main and all external screen clones (1024x768)
|
||||
2 Presentation: Main and all external screen clones ('$PRESENTATION_RES')
|
||||
3 Workstation: Your personal configration ('$WORKSTATIONLEFT + $WORKSTATIONRIGHT', panel on '$PANEL')
|
||||
a All displays on
|
||||
p All displays on, with the resolution of primary display ('$PRIMARYRESOLUTION')
|
||||
|
||||
Reference in New Issue
Block a user