...
 
Commits (3)
......@@ -19,7 +19,7 @@ bspc monitor --reset-desktops term www dev chat edit play virt 8 9 10
bspc desktop '^1' --layout monocle
# Make windows float on specific desktops
# https://github.com/baskerville/bspwm/issues/325
bspc subscribe node_manage | while read event monitor desktop nodeid ipid; do
bspc subscribe node_manage | while read -r event monitor desktop nodeid ipid; do
case "$desktop" in
www|play|6|virt|7|9)
bspc node "$nodeid" --state floating
......@@ -100,6 +100,7 @@ bspc rule --add Uget-gtk state=floating
bspc rule --add Vinagre state=floating
# Colors
# shellcheck source=/dev/null
. "$HOME/.local/share/themes/colorschemes/bspwm.cfg"
bspc config focused_border_color "$brightwhite"
bspc config active_border_color "$brightblack"
......@@ -120,6 +121,7 @@ bspc config normal_private_border_color "$black"
hsetroot -solid "$brightblack"
# Load session
# shellcheck source=/dev/null
. "$BSPWM_CONFIG/restore.cfg"
if [ -e "$BSPWM_STATE" ] ; then
bspc wm --load-state "$BSPWM_STATE"
......@@ -128,12 +130,13 @@ if [ -e "$BSPWM_STATE" ] ; then
fi
# Launch keybinding daemon
sxhkd &
sxhkd -c "$BSPWM_CONFIG/sxhkdrc" &
# Autostart
"$BSPWM_CONFIG/autostart" &
# Read panel configuration and launch it
# shellcheck source=/dev/null
. "${XDG_CONFIG_HOME:-$HOME/.config}/lemonbar/panel.cfg" && panel \
| lemonbar -a 50 -g "${BARWIDTH}x${BARHEIGHT}+${EDGEWIDTH}+${EDGEWIDTH}" \
-f "$PANEL_FONT_FAMILY" -F "$COLOR_FOREGROUND" -B "$COLOR_BACKGROUND" \
......
......@@ -14,6 +14,7 @@ killprogs() {
}
# Restart function
# shellcheck source=/dev/null
restart() {
# Save session status
. "$BSPWM_CONFIG/restore.cfg"
......@@ -38,6 +39,7 @@ logout() {
}
# Load dmenu config
# shellcheck source=/dev/null
[ -f "$HOME/.dmenurc" ] && . "$HOME/.dmenurc" || DMENU='dmenu -i'
# Menu items
......
......@@ -14,7 +14,7 @@ If we have Git installed on the system, we can get the files directly from the
repository:
```sh
git clone https://github.com/aguslr/bspwm-config
git clone https://gitlab.com/aguslr/bspwm-config
```
After this, every time we want to update the files we do:
......@@ -29,7 +29,7 @@ If Git is not installed, we can still get the files as long as we have a basic
Unix environment available:
```sh
wget https://github.com/aguslr/bspwm-config/tarball/master -O - | tar -xzv --strip-components 1 --exclude={README.md,demo.gif}
wget https://gitlab.com/aguslr/bspwm-config/-/archive/master/bspwm-config-master.tar.gz -O - | tar -xzv --strip-components 1 --exclude={README.md,demo.gif}
```
### Installing with Stow
......