Last active
April 9, 2022 01:26
-
-
Save crpb/4b0b19619dcaec6158c3f8c8d9b5fefb to your computer and use it in GitHub Desktop.
Fluxbox Apps xprop shell-function to create an ~/.fluxbox/apps entry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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