I added support for focusing a specific window when some kind of notification occurs to my DWM fork in 879e7d3. This script allows me to choose an open window and force my window manager to pull it up. Very powerful!
10 lines
191 B
Bash
Executable File
10 lines
191 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
app=$(wmctrl -l |\
|
|
awk '{for (i=4; i<=NF; i++) printf "%s ", $i; print ""}' |\
|
|
dmenu -i -p "Switch to: ")
|
|
if [ ! -z "$app" ]
|
|
then
|
|
wmctrl -a $app
|
|
fi
|