search_apps script to make pulling up open applications easier

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!
This commit is contained in:
2025-12-11 23:14:50 +00:00
parent d239dc5ffe
commit 239a11c7a0
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/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