arch-rice/.config/bspwm/bspwmrc.bak

46 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# Set current monitor configuration to something, otherwise default to 7
CURRENT_MONITOR_CONFIG=${1:-7}
if [[ ${CURRENT_MONTIOR_CONFIG} -eq 4 ]];then
echo "Going with 4 for BSPWM"
bspc monitor DP-1 -d I II III IV V &
bspc monitor HDMI-1 -d VI VII VIII IX X &
elif [[ ${CURRENT_MONTIOR_CONFIG} -eq 5 ]];then
echo "Going with 5 for BSPWM"
bspc monitor DP-1 -d I II III IV V &
bspc monitor DP-2 -d VI VII VIII IX X &
elif [[ ${CURRENT_MONTIOR_CONFIG} -eq 6 ]];then
echo "Going with 6 for BSPWM"
bspc monitor HDMI-1 -d I II III IV V &
bspc monitor DP-2 -d VI VII VIII IX X &
elif [[ ${CURRENT_MONTIOR_CONFIG} -eq 7 ]];then
echo "Going with 7 for BSPWM"
bspc monitor DP-1 -d I II III IV &
bspc monitor HDMI-1 -d V VI VII &
bspc monitor DP-2 -d VIII IX X &
else
echo "Going with default:$CURRENT_MONITOR_CONFIG for BSPWM"
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 query --names | xargs -n1 -I{} bspc monitor {} -d 1 2 3 4 5 6 7 8 9 0
bspc config border_width 2
bspc config window_gap 15
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
#bspc rule -a Gimp desktop='^8'
#state=floating follow=on
#bspc rule -a librewolf desktop='^2'
#bspc rule -a mplayer2 state=floating
#bspc rule -a Kupfer.py focus=on
#bspc rule -a Screenkey manage=off