updates from gentoo

This commit is contained in:
Solomon Laing 2022-05-09 21:31:25 +09:30
parent 556bad0e3f
commit 91f49a6ae7
2 changed files with 12 additions and 3 deletions

View File

@ -1,2 +0,0 @@
#!/bin/sh
xrandr --output DVI-D-0 --mode 1680x1050 --pos 4240x195 --rotate normal --output HDMI-0 --mode 1680x1050 --pos 0x195 --rotate normal --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --mode 1280x1024 --pos 4240x1245 --rotate normal --output DP-4 --primary --mode 2560x1440 --pos 1680x0 --rotate normal --output DP-5 --off --output DVI-I-1-0 --off --output DVI-I-1-1 --off --output HDMI-1-0 --off

View File

@ -40,10 +40,21 @@ fi
# it seems modules and xorg confs were not due to there being an intel
# integrated card, not sure how the desktop will react though
HOST=$(cat /etc/hostname)
HOST=$(hostname)
if [ "$HOST" == "archmetabox" ] ; then
# this is specifically for the laptop so check hostname
xrandr --setprovideroutputsource modesetting NVIDIA-G0
xrandr --auto
fi
if [ "$HOST" == "holocene" ] ; then
[ -f ~/.xprofile ] && . ~/.xprofile
dwmblocks &
while true; do
dwm >/dev/null 2>&1
done
exec dwm
fi