From e24166d147e20efc42bc410b17e5ae83dd359c10 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Thu, 28 Apr 2016 10:30:04 -0500 Subject: [PATCH] corrected display layout for work computer --- .xinitrc | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.xinitrc b/.xinitrc index 9f1c02f..d7daee8 100644 --- a/.xinitrc +++ b/.xinitrc @@ -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;;