42 lines
1.1 KiB
Bash
Executable File
42 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Set current monitor config to something, otherwise default to 7
|
|
CURRENT_MONITOR_CONFIG=${1:-7}
|
|
|
|
if [[ "${CURRENT_MONITOR_CONFIG}" -eq 4 ]]; then
|
|
echo "BSPWM is 4"
|
|
bspc monitor DP-2 -d I II III IV V &
|
|
bspc monitor HDMI-0 -d VI VII VIII IX X
|
|
elif [[ "${CURRENT_MONITOR_CONFIG}" -eq 5 ]]; then
|
|
echo "BSPWM is 5"
|
|
bspc monitor DP-2 -d I II III IV V &
|
|
bspc monitor DP-4 -d VI VII VIII IX X
|
|
elif [[ "${CURRENT_MONITOR_CONFIG}" -eq 6 ]]; then
|
|
echo "BSPWM is 6"
|
|
bspc monitor HDMI-0 -d VI VII VIII IX X &
|
|
bspc monitor DP-4 -d I II III IV V
|
|
elif [[ "${CURRENT_MONITOR_CONFIG}" -eq 7 ]]; then
|
|
echo "BSPWM is 7"
|
|
bspc monitor DP-4 -d I II III &
|
|
bspc monitor HDMI-0 -d IV V VI &
|
|
bspc monitor DP-2 -d VII VIII IX X
|
|
else
|
|
echo "BSPWM is default: ${CURRENT_MONITOR_CONFIG}"
|
|
bspc monitor -d I II III IV V VI VII VIII IX X
|
|
fi
|
|
|
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
|
$HOME/.config/polybar/launch.sh $CURRENT_MONITOR_CONFIG &
|
|
|
|
#
|
|
|
|
#bspc config border_width 2
|
|
bspc config border_width 0
|
|
bspc config window_gap 15
|
|
|
|
bspc config split_ratio 0.52
|
|
bspc config borderless_monocle true
|
|
bspc config gapless_monocle true
|
|
|
|
|