You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
468 B
12 lines
468 B
#!/bin/sh |
|
win=$(bspc query -N -n .hidden.window) |
|
n=$(for w in $win; do |
|
name=$(xprop -id "$w" WM_CLASS 2>/dev/null | sed -r 's/.+ "(.+)"$/\1/') |
|
title=$(xprop -id "$w" WM_NAME 2>/dev/null | sed -r 's/.+ "(.+)"$/\1/') |
|
[ "$name" = "WM_CLASS" ] && echo "node $w" || echo "$name \"$title\"" |
|
done | rofi -dmenu -no-custom -format i -p 'Unhide: ') |
|
if [ -n "$n" ]; then |
|
id=$(echo "$win" | sed -n "$((n+1))p") |
|
bspc node "$id" -d focused |
|
bspc node "$id" -g hidden=off |
|
fi
|
|
|