2016-01-06 11:55:04 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-01-06 12:23:59 -06:00
|
|
|
# This script will seriously nuke your home directory. You should really read
|
|
|
|
# each of the scripts that will be executed in those process.
|
2016-01-06 11:55:04 -06:00
|
|
|
|
2016-11-29 13:08:27 -06:00
|
|
|
# the path to the dotfiles directory/repository
|
2016-01-17 08:52:17 -06:00
|
|
|
export DOTFILES_PATH="$HOME/.dotfiles"
|
2016-11-29 13:08:27 -06:00
|
|
|
|
|
|
|
# this variable controls whether or not we have a separate dir we like to
|
|
|
|
# actually use as home instead of $HOME in order to avoid dotfiles clutter
|
|
|
|
# for all user-facing purposes, we try to use this as the home directory while
|
|
|
|
# programs will still use $HOME (which in my case is usually /home/username/usr)
|
|
|
|
export NICE_HOME=$(realpath "$HOME/..")
|
|
|
|
|
|
|
|
# this prevents different bar modules from being loaded you should probably
|
|
|
|
# avoid setting them here and set them in "$HOME/.bashrc_env"
|
2016-09-02 21:14:45 -05:00
|
|
|
export BLACKLISTED_BAR_MODULES=""
|
2016-11-29 13:08:27 -06:00
|
|
|
|
|
|
|
# in some cases (mainly OS provisioning) we clone repositories or download code
|
|
|
|
# for later use
|
|
|
|
# as I'm writing this, I realize I should almost certainly be using /tmp and am more
|
|
|
|
# than a little bit ashamed
|
|
|
|
# TODO: use /tmp ?
|
|
|
|
export REPOSITORY_PATH="$NICE_HOME/code/open-source"
|
2016-12-08 12:35:29 -06:00
|
|
|
export IMG_PATH="$NICE_HOME/img"
|
2016-11-29 13:08:27 -06:00
|
|
|
|
|
|
|
# the width of the border around the bspwm windows
|
2016-11-30 13:57:45 -06:00
|
|
|
export BORDER_WIDTH=0
|
2016-11-29 13:08:27 -06:00
|
|
|
|
|
|
|
# the gap between bspwm windows
|
2016-07-27 08:57:56 -05:00
|
|
|
export WINDOW_GAP=5
|
2016-01-06 11:55:04 -06:00
|
|
|
|
2016-11-29 13:08:27 -06:00
|
|
|
# load our font variables
|
2016-01-12 15:24:44 -06:00
|
|
|
source "$DOTFILES_PATH/scripts/get_x_fonts.sh"
|
2016-11-29 13:08:27 -06:00
|
|
|
|
|
|
|
# load our color info
|
2016-01-12 15:24:44 -06:00
|
|
|
source "$DOTFILES_PATH/scripts/get_color.sh"
|
|
|
|
|
2016-11-29 13:08:27 -06:00
|
|
|
# load our bar variables
|
|
|
|
source "$DOTFILES_PATH/env/wm/extras/bar/variables.bash"
|
2016-07-27 08:57:56 -05:00
|
|
|
|
2016-11-29 14:29:35 -06:00
|
|
|
# when we kill bspwm we can export the state to this file
|
|
|
|
export BSPWM_STATE_FILE="$DOTFILES_PATH/bspwm_state.json.tmp"
|
|
|
|
|
2016-12-11 15:17:59 -06:00
|
|
|
# disables the clickable launcher buttons for touch or keyboardless devices if 1
|
|
|
|
export NO_LAUNCHER_BUTTONS=0
|
|
|
|
|
2016-11-29 13:08:27 -06:00
|
|
|
# this lets our window gap account for the border width
|
2016-11-29 14:29:35 -06:00
|
|
|
# if this is enabled, it is usually so that I can reduce border width on my
|
|
|
|
# desktops with a single chrome window on them so that I can click that tabs at
|
|
|
|
# the top quickly
|
|
|
|
# I really need to migrate browsers
|
|
|
|
# export WINDOW_GAP=$(expr $WINDOW_GAP - $BORDER_WIDTH)
|
2016-07-27 08:57:56 -05:00
|
|
|
|
2016-01-06 11:55:04 -06:00
|
|
|
# load per-device bashrc_env if it exists
|
|
|
|
if [ -a "$HOME/.bashrc_env" ]; then
|
|
|
|
. "$HOME/.bashrc_env"
|
|
|
|
fi
|