From 8728e9e370100b56afed1e618e4c61c403e1228d Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 23 Feb 2021 17:25:14 +0100 Subject: Added setup screen configuration according to hostname, Added install newsboat urls from cacharle-sync in install script --- .xinitrc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.xinitrc') diff --git a/.xinitrc b/.xinitrc index 1d19d31..4ab53ef 100755 --- a/.xinitrc +++ b/.xinitrc @@ -7,4 +7,15 @@ redshift -c $HOME/.config/redshift.conf & echo 'Starting dunst' dunst & xset r rate 200 50 + +[ "$(cat /etc/hostname)" = 'cacharle-main' ] && + xrandr --output DVI-0 --mode 1280x1024 --left-of DVI-1 \ + --output DVI-1 --mode 1920x1080 --primary --left-of HDMI-0 \ + --output HDMI-0 --mode 1920x1080 + +[ "$(cat /etc/hostname)" = 'charles-laptop' ] && + xrandr | grep 'VGA1.*connected' && + xrandr --output LVDS1 --primary --left-of VGA1 \ + --output VGA1 --mode 1280x1024 + exec xmonad -- cgit