#!/usr/bin/env bash # Clear the rules before adding any while read -r rule _; do bspc rule -r "$rule"; done < <(bspc rule -l) # Now add the rules bspc rule -a 'firefox' desktop=^2 state=tiled bspc rule -a 'steam_app_359320' desktop=^5 bspc rule -a 'steam_app_397540' desktop=^5 bspc rule -a 'Steam' desktop=^8 bspc rule -a '*' state=floating