mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
create wmpid
This commit is contained in:
parent
7af93bccbe
commit
51b342568a
12
.local/bin/wmpid
Normal file
12
.local/bin/wmpid
Normal file
@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
Loading…
x
Reference in New Issue
Block a user