summaryrefslogtreecommitdiff
path: root/dot-config/bspwm/scripts/bspasfloat
blob: b38bae3e8389456578361b8f84d7a3135ba62ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
bspc config initial_polarity second_child

# Run the command specified as the first argument
$1 & disown

# Wait for the window to be created
sleep 1

# Get the ID of the most recently created window
window_id=$(bspc query --windows --node focused | tail -n 1 | awk '{print $1}')

# Set the state of the window to floating
bspc window $window_id -t floating

bspc config initial_polarity first_child