mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-02 12:18:41 -05:00
8 lines
262 B
Bash
Executable File
8 lines
262 B
Bash
Executable File
#!/bin/sh
|
|
|
|
list=$(wmctrl -l)
|
|
|
|
num=$(echo "$list" | awk '{ $1=$2=$3=""; gsub(/^ */,""); printf "%3d - %s\n", NR, $0; }' | dmenu -l 20 -p "window" | cut -d '-' -f 1)
|
|
[ -z "$num" ] && exit
|
|
echo "$list" | awk -v N="$num" 'NR == N { print $1; }' | xargs wmctrl -i -a
|