chore: format and change input in setup-x0vncserver

main
Ian Mancini 2 years ago
parent 16f9f1c6fa
commit 89b97ec0dd

@ -1,13 +1,13 @@
#!/bin/bash
export DISPLAY=":0"
OUTPUT="DisplayPort-2"
OUTPUT="HDMI-A-0"
ORIGINAL_RES=$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')
NEW_RES="${1:-$ORIGINAL_RES}"
WM=$(wmctrl -m | head -n 1 | cut -d " " -f2)
echo $ORIGINAL_RES
echo "$ORIGINAL_RES"
set_resolution() {
if [ "$ORIGINAL_RES" != "$NEW_RES" ]; then
@ -19,4 +19,4 @@ if [ "$ORIGINAL_RES" != "$NEW_RES" ]; then
fi
}
set_resolution $NEW_RES
set_resolution "$NEW_RES"

Loading…
Cancel
Save