Carlos de la Torre 51b342568a
create wmpid
2022-08-07 22:30:46 +03:00

13 lines
199 B
Bash

#!/bin/sh
# This function is needed if there are multiple instances of the window manager.
export WM="dwm"
wmpid(){
tree="$(pstree -ps $$)"
tree="${tree#*$WM(}"
echo "${tree%%)*}"
}
eval wmpid