2017-02-07 16:16:45 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-02-10 11:23:52 -06:00
|
|
|
BORDER_WIDTH=0 # change in bspwm_config, here for launcher
|
|
|
|
START_BAR=1
|
|
|
|
BAR_COMMAND="$DOTFILES_PATH/de/bar/bar.bash"
|
|
|
|
|
2017-02-07 16:16:45 -06:00
|
|
|
if [[ -z "$XDG_CONFIG_HOME" ]]; then
|
2017-02-10 11:23:52 -06:00
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
2017-02-07 16:16:45 -06:00
|
|
|
fi
|
|
|
|
if [[ -z "$DOTFILES_PATH" ]]; then
|
2017-02-10 11:23:52 -06:00
|
|
|
export DOTFILES_PATH="$XDG_CONFIG_HOME/dotfiles"
|
2017-02-07 16:16:45 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
BSPWM_STATE_FILE="$HOME/.bspwm_state"
|
|
|
|
|
|
|
|
if [ -e "$BSPWM_STATE" ] ; then
|
|
|
|
bspc wm -l "$BSPWM_STATE"
|
|
|
|
rm "$BSPWM_STATE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
source "$DOTFILES_PATH/de/bspwm_config"
|
|
|
|
|
|
|
|
if command -v urxvtd >/dev/null 2>&1; then
|
2017-02-10 11:23:52 -06:00
|
|
|
urxvtd &
|
2017-02-07 16:16:45 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
if command -v sxhkd >/dev/null 2>&1; then
|
2017-02-10 11:23:52 -06:00
|
|
|
export LAUNCHER_FONT=$(xrdb -query | sed -ne 's/.*font:\s*xft:\(.*\)\-.*$/\1/p' | head -n 1)
|
|
|
|
export LAUNCHER_FONT_SIZE=$(xrdb -query | sed -ne 's/.*font:\s*xft:.*\-\(.*\)$/\1/p' | head -n 1)
|
|
|
|
export HIGHLIGHT_COLOR=$(xrdb -query | sed -ne 's/.*color1*:\s*\(.*\)$/\1/p' | head -n 1)
|
|
|
|
export BACKGROUND_COLOR=$(xrdb -query | sed -ne 's/.*background:\s*\(.*\)$/\1/p' | head -n 1)
|
|
|
|
export FOREGROUND_COLOR=$(xrdb -query | sed -ne 's/.*foreground:\s*\(.*\)$/\1/p' | head -n 1)
|
|
|
|
# export HIGHLIGHT_COLOR=$(xrdb -query | sed -ne 's/.*font:\s*xft:.*\-\(.*\)$/\1/p' | head -n 1)
|
|
|
|
sxhkd &
|
|
|
|
fi
|
|
|
|
|
2017-02-11 14:04:43 -06:00
|
|
|
if [ -f "$DOTFILES_PATH/de/xloadresources" ]; then
|
|
|
|
source "$DOTFILES_PATH/de/xloadresources"
|
|
|
|
fi
|
|
|
|
|
2017-02-11 14:00:54 -06:00
|
|
|
if [ -f "$HOME/.fehbg" ]; then
|
|
|
|
"$HOME/.fehbg" &
|
|
|
|
fi
|
|
|
|
|
|
|
|
# launch optional and helpful apps
|
|
|
|
if command -v unclutter >/dev/null 2>&1; then
|
|
|
|
unclutter &
|
|
|
|
fi
|
|
|
|
|
|
|
|
if command -v compton >/dev/null 2>&1; then
|
|
|
|
compton &
|
|
|
|
fi
|
|
|
|
|
|
|
|
# launch bar
|
2017-02-10 11:23:52 -06:00
|
|
|
if [[ $START_BAR -eq 1 ]]; then
|
|
|
|
${BAR_COMMAND} &
|
2017-02-07 16:16:45 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
bspc wm -o
|