From f39d735e2ba625a31a7dbf6fb8bdd62501379ad1 Mon Sep 17 00:00:00 2001 From: zachir Date: Wed, 5 Oct 2022 22:00:32 -0500 Subject: Initial Commit --- bspwm/bspwmrc | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bspwm/noswallow | 1 + bspwm/terminals | 3 +++ 3 files changed, 70 insertions(+) create mode 100755 bspwm/bspwmrc create mode 100644 bspwm/noswallow create mode 100644 bspwm/terminals (limited to 'bspwm') diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc new file mode 100755 index 0000000..5799efb --- /dev/null +++ b/bspwm/bspwmrc @@ -0,0 +1,66 @@ +#! /bin/sh +sxhkd -c ~/.config/sxhkd/sxhkdrc.1 & +launch_polybar.sh 'bspwm' & +pgrep -fl 'pidswallow -gl' || pidswallow -gl +~/.config/autostart.sh + +set_desktops () { + case "$1" in + "2") + bspc monitor "$2" -d I II III IV V + bspc monitor "$3" -d VI VII VIII IX X + ;; + "3") + bspc monitor "$2" -d I II III + bspc monitor "$3" -d IV V VI VIII + bspc monitor "$4" -d VIII IX X + ;; + "4") + bspc monitor "$2" -d I II III + bspc monitor "$3" -d IV V + bspc monitor "$4" -d VI VII + bspc monitor "$5" -d VIII IX X + ;; + "5") + bspc monitor "$2" -d I II + bspc monitor "$3" -d III IV + bspc monitor "$4" -d V VI + bspc monitor "$5" -d VII VIII + bspc monitor "$6" -d IX X + esac +} + +MONITORS=`xrandr | awk '/ connected/ && /[[:digit:]]x[[:digit:]].*+/{print $1}'` +MONITOR_COUNT=`echo "$MONITORS" | wc -l` +if [ "$MONITOR_COUNT" -lt 2 ]; then + bspc monitor -d I II III IV V VI VII VIII IX X +else + set_desktops "$MONITOR_COUNT" `echo "$MONITORS" | sed 's/\n/ /g'` +fi + +bspc config border_width 2 +bspc config window_gap 10 +bspc config top_padding 27 + +bspc config split_ratio 0.50 +bspc config borderless_monocle true +bspc config gapless_monocle true + +bspc config focus_follows_pointer true + +bspc rule -a Thunderbird:\* desktop=X +bspc rule -a Nextcloud:nextcloud state=tiled +bspc rule -a Surf:surf state=tiled +bspc rule -a QjackCtl:qjackctl state=floating +bspc rule -a Ardour-5.12.0:ardour-5.12.0 state=floating + +bspc rule -a sphtop sticky=on state=floating +bspc rule -a spterm sticky=on state=floating +bspc rule -a sppmxr sticky=on state=floating +bspc rule -a spblue sticky=on state=floating +bspc rule -a spncmp sticky=on state=floating +bspc rule -a spmutt sticky=on state=floating +bspc rule -a spprof sticky=on state=floating +bspc rule -a spircc sticky=on state=floating +bspc rule -a sptodo sticky=on state=floating +bspc rule -a sptrem sticky=on state=floating diff --git a/bspwm/noswallow b/bspwm/noswallow new file mode 100644 index 0000000..b75624e --- /dev/null +++ b/bspwm/noswallow @@ -0,0 +1 @@ +REAPER diff --git a/bspwm/terminals b/bspwm/terminals new file mode 100644 index 0000000..974a8d3 --- /dev/null +++ b/bspwm/terminals @@ -0,0 +1,3 @@ +tabbed +st +"tabbed" -- cgit v1.2.3