X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=Scripts%2Fmonitor-attach;fp=Scripts%2Fmonitor-attach;h=05eac0acbdfb1685c56f488ced887da76dd17e3d;hp=0000000000000000000000000000000000000000;hb=b156356b96d0bd00229a145be24c6825ec309a2c;hpb=c87873aa1c05f669f18d3d685b1f0a2ade2ed13b diff --git a/Scripts/monitor-attach b/Scripts/monitor-attach new file mode 100755 index 0000000..05eac0a --- /dev/null +++ b/Scripts/monitor-attach @@ -0,0 +1,13 @@ +#!/bin/sh + +xrandr --newmode "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync +xrandr --addmode VGA1 "1920x1080_60.00" +xrandr --auto --output VGA1 --mode 1920x1080_60.00 --right-of LVDS1 + +# redshift +redshift -x +redshift -m randr:crtc=0 -O 3000 +redshift -m randr:crtc=1 -O 5000 + +# need to reset wallpaper too +setwallpaper