diff --git a/SXHkD/.config/sxhkd/sxhkdrc b/SXHkD/.config/sxhkd/sxhkdrc index 09f3913..da51ba7 100644 --- a/SXHkD/.config/sxhkd/sxhkdrc +++ b/SXHkD/.config/sxhkd/sxhkdrc @@ -17,6 +17,9 @@ super + s notify-send -u low "Launching browser"; \ $HOME/.local/scripts/browser; +super + f + $HOME/.local/scripts/search_apps; + super + C dunstctl close; diff --git a/Scripts/.local/scripts/search_apps b/Scripts/.local/scripts/search_apps new file mode 100755 index 0000000..b94e8ee --- /dev/null +++ b/Scripts/.local/scripts/search_apps @@ -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