This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/variables.bash

58 lines
2.0 KiB
Bash
Raw Normal View History

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
# the path to the dotfiles directory/repository
2016-01-17 08:52:17 -06:00
export DOTFILES_PATH="$HOME/.dotfiles"
# 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"
export BLACKLISTED_BAR_MODULES=""
# 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"
# the width of the border around the bspwm windows
2016-11-30 13:57:45 -06:00
export BORDER_WIDTH=0
# 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
# load our font variables
source "$DOTFILES_PATH/scripts/get_x_fonts.sh"
# load our color info
source "$DOTFILES_PATH/scripts/get_color.sh"
# 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
# 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