mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
13 lines
199 B
Bash
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
|