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:
@@ -17,6 +17,9 @@ super + s
|
|||||||
notify-send -u low "Launching browser"; \
|
notify-send -u low "Launching browser"; \
|
||||||
$HOME/.local/scripts/browser;
|
$HOME/.local/scripts/browser;
|
||||||
|
|
||||||
|
super + f
|
||||||
|
$HOME/.local/scripts/search_apps;
|
||||||
|
|
||||||
super + C
|
super + C
|
||||||
dunstctl close;
|
dunstctl close;
|
||||||
|
|
||||||
|
|||||||
9
Scripts/.local/scripts/search_apps
Executable file
9
Scripts/.local/scripts/search_apps
Executable 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
|
||||||
Reference in New Issue
Block a user