Add display setup script

This commit is contained in:
Thomas Avé 2022-07-29 20:48:32 +02:00
parent ac5cec5506
commit fca800eb99
2 changed files with 12 additions and 1 deletions

View File

@ -31,7 +31,8 @@ apps = {
local run_on_start_up = {
"numlockx on",
"nm-applet",
"xcape -e \"Super_L=Super_L|XF86Launch5\" -t 5000"
"xcape -e \"Super_L=Super_L|XF86Launch5\" -t 5000",
"/home/user/.config/awesome/scripts/setup_display.sh"
}
-- ===================================================================

View File

@ -0,0 +1,10 @@
declare -i count=2
declare -i seconds=1
while ((count)); do
xrandr >/dev/null
sleep $seconds
((count--))
done
xrandr --fb 7680x2160 --output DP-2 --mode 1920x1080 --pos 0x0 --output DP-0 --primary --mode 3840x2160 --pos 1920x0 --output HDMI-0 --mode 1920x1080 --pos 5760x0