aboutsummaryrefslogtreecommitdiff
path: root/bin/bspHide
blob: c69182d3d42858ad765ddf7ba6423760a734d187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/env bash

# hides focused window
# if there are any hidden windows in the current desktop, \
# unhide them

hidden=$(bspc query -N -n .hidden -d focused)

if [ -z "$hidden" ]; then
	bspc node focused -g hidden=on
else
	bspc node "$hidden" -g hidden=off
fi