corrected display layout for work computer
This commit is contained in:
parent
575f2f7b26
commit
e24166d147
18
.xinitrc
18
.xinitrc
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
userresources=$HOME/.Xresources
|
userresources=$HOME/.Xresources
|
||||||
usermodmap=$HOME/.Xmodmap
|
usermodmap=$HOME/.Xmodmap
|
||||||
|
@ -32,22 +32,18 @@ export SSH_AUTH_SOCK
|
||||||
xautolock -time 30 -locker 'i3lock -b -d -c 000000 -e -f' &
|
xautolock -time 30 -locker 'i3lock -b -d -c 000000 -e -f' &
|
||||||
|
|
||||||
# Thurstybook-specific config:
|
# 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
|
# Set VGA1 to be right of HDMI1
|
||||||
xrandr --output VGA1 --auto --right-of HDMI1
|
xrandr --output HDMI1 --primary --mode 1920x1080 --pos 0x0 --output VGA1 --mode 1680x1050 --pos 1920x0
|
||||||
# Set VGA1 to be a bit lower because of mouse issues
|
|
||||||
xrandr --output VGA1 --pos 1600x-150
|
|
||||||
xrandr --output HDMI1 --primary
|
|
||||||
|
|
||||||
# Set the bell to be different from Matt's
|
# Set the bell to be different from Matt's
|
||||||
xset b 75 750 50
|
xset b 75 750 50
|
||||||
fi
|
}
|
||||||
|
|
||||||
# If numlockx is installed, activate it
|
# If numlockx is installed, activate it
|
||||||
[[ -s /usr/bin/numlockx ]] && numlockx on
|
[ -s /usr/bin/numlockx ] && numlockx on
|
||||||
|
|
||||||
|
|
||||||
session=${1:-i3}
|
session=${1:-i3}
|
||||||
|
@ -63,7 +59,7 @@ case $session in
|
||||||
fluxbox ) exec startfluxbox;;
|
fluxbox ) exec startfluxbox;;
|
||||||
gnome ) exec gnome-session;;
|
gnome ) exec gnome-session;;
|
||||||
gnome-classic ) exec gnome-session --session=gnome-classic;;
|
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;;
|
icewm ) exec icewm-session;;
|
||||||
jwm ) exec jwm;;
|
jwm ) exec jwm;;
|
||||||
kde ) exec startkde;;
|
kde ) exec startkde;;
|
||||||
|
|
Loading…
Reference in New Issue