dotfiles/bin/.bin/WindowMinimiser

6 lines
332 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
hiddens=$(bspc query --nodes --node .hidden | nl -w1 -s' ')
window_choice=$(echo "$hiddens" | cut -d ' ' -f 2 | xargs -L 1 bspc query -T -n | jq -r .client.className | nl -w1 -s' ' | dmenu -l 10 -i | cut -d ' ' -f 1)
echo "${hiddens}" | awk 'NR == n {print $2}' n=$window_choice | xargs -I{} bspc node {} --flag hidden