corrected display layout for work computer

This commit is contained in:
David Thurstenson 2016-04-28 10:30:04 -05:00
parent 575f2f7b26
commit e24166d147
1 changed files with 7 additions and 11 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
@ -32,22 +32,18 @@ export SSH_AUTH_SOCK
xautolock -time 30 -locker 'i3lock -b -d -c 000000 -e -f' &
# Thurstybook-specific config:
[[ "$HOSTNAME" == "thurstybook" ]] && srandrd ~/.config/srandrd.conf
[ "$(hostname)" == "thurstybook" ] && srandrd ~/.config/srandrd.conf
if [[ "$HOSTNAME" == "dtarch" ]]; then
[ "$(hostname)" == "dtarch" ] && {
# Set VGA1 to be right of HDMI1
xrandr --output VGA1 --auto --right-of HDMI1
# Set VGA1 to be a bit lower because of mouse issues
xrandr --output VGA1 --pos 1600x-150
xrandr --output HDMI1 --primary
xrandr --output HDMI1 --primary --mode 1920x1080 --pos 0x0 --output VGA1 --mode 1680x1050 --pos 1920x0
# Set the bell to be different from Matt's
xset b 75 750 50
fi
}
# If numlockx is installed, activate it
[[ -s /usr/bin/numlockx ]] && numlockx on
[ -s /usr/bin/numlockx ] && numlockx on
session=${1:-i3}
@ -63,7 +59,7 @@ case $session in
fluxbox ) exec startfluxbox;;
gnome ) exec gnome-session;;
gnome-classic ) exec gnome-session --session=gnome-classic;;
i3|i3wm ) exec i3 -c ~/.config/i3/$HOSTNAME.config;;
i3|i3wm ) exec i3 -c ~/.config/i3/$(hostname).config;;
icewm ) exec icewm-session;;
jwm ) exec jwm;;
kde ) exec startkde;;