Skip to content

Instantly share code, notes, and snippets.

@crpb
Last active April 9, 2022 01:26
Show Gist options
  • Save crpb/4b0b19619dcaec6158c3f8c8d9b5fefb to your computer and use it in GitHub Desktop.
Save crpb/4b0b19619dcaec6158c3f8c8d9b5fefb to your computer and use it in GitHub Desktop.
Fluxbox Apps xprop shell-function to create an ~/.fluxbox/apps entry
#Fluxbox-Helper
fbxprop(){
echo -n "[app] "
xprop WM_CLASS WM_NAME WM_WINDOW_ROLE | sed 's/WM_\(.*\)(\(.*\)) = "//g;s/", "/\n/;s/"$//'| sed '1 s/^/(name=/;2 s/^/(class=/;3 s/^/(title=/;4 s/^/(role=/;s/$/)/g' | grep -v WM_WINDOW_ROLE |tr '\n' ' '
echo
echo "[end]"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment