dotfiles

Configuration files to dump into your home directory.
git clone git://git.swab.dev/dotfiles.git
Log | Files | Refs

.xinitrc (806B)


      1 #!/bin/sh
      2 # .xinitrc
      3 
      4 # Run xrandr based on current inputs:
      5 VGA1=$(xrandr | awk '/VGA-1/ { print $2 }')
      6 if [ "$VGA1" = "connected" ]; then
      7 	# run xrander script for docked screen; configured with arandr
      8 	xrandr --output LVDS-1 --off --output VGA-1 --mode 1920x1080 --pos 0x420 --rotate normal --output DP-2 --primary --mode 1920x1080 --pos 1920x0 --rotate left;
      9 else
     10 	# Run xrander for built in screen only
     11 	xrandr --output LVDS-1 --mode 1366x768 --pos 0x0 --rotate normal;
     12 fi
     13 
     14 # Set desktop background image:
     15 feh --bg-fill /home/jaron/pictures/backgrounds/retro_astro.jpg
     16 
     17 # Set keyboard layout variant to Programmer Dvorak:
     18 setxkbmap -variant dvp;
     19 
     20 breto --dwm=true --battery=true > /dev/null 2>&1 &
     21 
     22 if [ "$DWM" -eq 1 ]; then
     23 	exit 0; # Stop here if $DWM is already set to 1
     24 fi
     25 
     26 export DWM=1;
     27 exec dwm;