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