2017-02-07 16:16:45 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-07-05 09:47:46 -05:00
|
|
|
source "$HOME/.bashrc"
|
|
|
|
|
2017-07-25 19:14:34 -05:00
|
|
|
# NO_COMPTON=1
|
2017-04-27 15:49:57 -05:00
|
|
|
BORDER_WIDTH=5 # change in bspwm_config, here for launcher
|
2017-02-10 11:23:52 -06:00
|
|
|
START_BAR=1
|
2020-01-07 19:38:43 -06:00
|
|
|
BAR_COMMAND="$DOTFILES_PATH/apps/de/polybar/run"
|
2017-02-10 11:23:52 -06:00
|
|
|
|
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
|
|
|
|
|
2019-12-02 09:31:28 -06:00
|
|
|
source "$DOTFILES_PATH/apps/de/bspwm/config"
|
2017-02-07 16:16:45 -06:00
|
|
|
|
2018-07-05 09:47:46 -05:00
|
|
|
# TODO: switch to alacritty
|
2017-02-07 16:16:45 -06:00
|
|
|
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
|
|
|
|
|
2018-11-08 13:06:32 -06:00
|
|
|
if command -v dunst >/dev/null 2>&1; then
|
|
|
|
dunst &
|
|
|
|
fi
|
|
|
|
|
2017-02-07 16:16:45 -06:00
|
|
|
if command -v sxhkd >/dev/null 2>&1; then
|
2017-02-10 11:23:52 -06:00
|
|
|
# export HIGHLIGHT_COLOR=$(xrdb -query | sed -ne 's/.*font:\s*xft:.*\-\(.*\)$/\1/p' | head -n 1)
|
2018-10-23 14:37:57 -05:00
|
|
|
export NICE_HOME
|
2017-07-27 14:07:18 -05:00
|
|
|
sxhkd -m -1 &
|
2017-02-10 11:23:52 -06:00
|
|
|
fi
|
|
|
|
|
2019-12-02 09:31:28 -06:00
|
|
|
if [ -f "$DOTFILES_PATH/apps/de/x/loadresources" ]; then
|
|
|
|
"$DOTFILES_PATH/apps/de/x/loadresources"
|
2019-03-13 22:12:37 -05:00
|
|
|
fi
|
2017-02-11 14:04:43 -06:00
|
|
|
|
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
|
2019-08-09 10:00:52 -05:00
|
|
|
if [[ "$NO_COMPTON" -ne 1 ]]; then
|
2017-07-25 19:14:34 -05:00
|
|
|
compton &
|
|
|
|
fi
|
2017-02-11 14:00:54 -06:00
|
|
|
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
|