d0tfiles

*nix dotfiles for arch linux setup
Log | Files | Refs | README | LICENSE

bspfloat (274B)


      1 #!/usr/bin/env bash
      2 
      3 # All windows are floating on desktop 8
      4 FLOATING_DESKTOP_ID=$(bspc query -D -d '^8')
      5 
      6 bspc subscribe node_add | while read -a msg ; do
      7    desk_id=${msg[2]}
      8    wid=${msg[4]}
      9    [ "$FLOATING_DESKTOP_ID" = "$desk_id" ] && bspc node "$wid" -t floating
     10 done