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/env/wm/bspwm_config

62 lines
1.6 KiB
Plaintext
Raw Normal View History

2016-01-06 11:55:04 -06:00
#!/usr/bin/env sh
source "$DOTFILES_PATH/variables.bash"
source "$DOTFILES_PATH/scripts/get_color.sh"
2016-01-07 01:18:47 -06:00
source "$DOTFILES_PATH/scripts/get_x_fonts.sh"
2016-01-06 11:55:04 -06:00
2016-04-20 16:09:02 -05:00
# bspc config normal_border_color "#$(get_color 05)"
# bspc config focused_border_color "#$(get_color 0D)"
# bspc config active_border_color "#$(get_color 0D)"
# bspc config presel_feedback_color "#$(get_color 0D)"
2016-07-14 15:22:19 -05:00
bspc config normal_border_color "#$(get_color 01)"
bspc config focused_border_color "#$(get_color 0D)"
2016-07-27 08:57:56 -05:00
bspc config active_border_color "#$(get_color 09)"
2016-07-14 15:22:19 -05:00
bspc config presel_feedback_color "#$(get_color 04)"
2016-01-07 01:18:47 -06:00
bspc config border_width "$BORDER_WIDTH"
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true
2016-01-06 11:55:04 -06:00
bspc config window_gap "$WINDOW_GAP"
2016-11-28 14:02:46 -06:00
if [ "$BAR_ON_XINIT" -eq 1 ]; then
if [ -z "$BAR_MONITOR" -o "$BAR_MONITOR" -eq 0 ]; then
source "$DOTFILES_PATH/scripts/monitors.sh"
BAR_MONITOR="$LAST_BSPWM_MONITOR"
fi
if [ $BAR_TOP -eq 1 ]; then
bspc config -m ${BAR_MONITOR} top_padding "$BAR_HEIGHT"
else
bspc config -m ${BAR_MONITOR} bottom_padding "$BAR_HEIGHT"
fi
fi
echo "${BSPWM_MONITORS}"
BSPWM_MONITORS=$(bspc query -M | tac)
MONITOR_COUNT=$(echo "${BSPWM_MONITORS}" | wc -w | awk '{ printf $1 }')
2016-01-06 11:55:04 -06:00
PER_MONITOR=$((10 / MONITOR_COUNT))
i=1
2016-11-28 14:11:12 -06:00
DESKTOPS=(dev web misc env play out main srv daem util)
for mon in ${BSPWM_MONITORS}; do
2016-01-06 11:55:04 -06:00
echo $mon
echo $i
max=$((i + PER_MONITOR - 1))
echo $max
screens=
for j in $(seq $i $max); do
2016-11-28 14:11:12 -06:00
ind=${DESKTOPS[$((j - 1))]}
screens="$screens$ind "
done
bspc monitor "$mon" -d $screens
2016-01-06 11:55:04 -06:00
i=$((max + 1))
done
2016-08-30 17:14:27 -05:00
if [[ -f "$HOME/.bspwm_env" ]]; then
source "$HOME/.bspwm_env"
fi