2022-11-26 00:30:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# Basically we use this script to quickly determine
|
|
|
|
# if we're going to switch to 'single mode' during the workday
|
|
|
|
# or go back to the usual dual monitor setup
|
|
|
|
|
|
|
|
opt=$(printf 'Single\nDual' | dmenu -i -p 'Single or dual monitor setup')
|
|
|
|
|
|
|
|
main=DP-2
|
|
|
|
scnd=HDMI-0
|
|
|
|
|
|
|
|
if [ "$opt" = "Single" ]; then
|
|
|
|
xrandr --output $scnd --off
|
|
|
|
xrandr --output $main --mode 1920x1080 --rate 143.98
|
|
|
|
else
|
2022-12-01 22:23:36 +00:00
|
|
|
xrandr --output $scnd --mode 1920x1080 --right-of $main
|
2022-11-26 00:30:23 +00:00
|
|
|
fi
|