Tue Sep 19 2017
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
# Start things that should run regardless of the WM,
# such as conky and nitrogen. Then, use an if statement
# to start things that should only be in that WM,
# for instance, we don't want to start tint2 in i3

# Specify the WM. openbox, i3, etc.
#WM='spectrwm'
#WM='openbox'
WM='i3'


# Things that should run, regardless of WM
exec xrdb ~/Dropbox/dev/dotfiles/.Xresources &
exec xcompmgr &
exec dropbox &
(sleep 4 && exec .screenlayout/monitors.sh) &
(sleep 4 && exec nitrogen --restore) &
(sleep 3 && exec xflux -z 33158) &

# Special keys for laptop
sudo illum-d &
xbindkeys -p &

#(sleep 3 && exec xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55) &
#eval `dircolors /etc/dir_colors` &


if [[ $WM == 'i3' ]]; then

	(sleep 3 && /usr/bin/nm-applet --sm-disable) &
	$(xrandr --listproviders | grep -q "modesetting") && xrandr --setprovideroutputsource 4 0
	exec i3

elif [[ $WM == 'spectrwm' ]]; then

	exec spectrwm

elif [[ $WM == 'openbox' ]]; then

	exec tint2 &
	(sleep 4 && exec `xcompmgr` && exec `conky -c .conkyrc2` && exec `conky -c .conkyrc3` ) &&
	(sleep 3 && /usr/bin/nm-applet --sm-disable) &
	exec openbox-session

fi