dotfiles/.local/bin/renew-dwm

12 lines
138 B
Plaintext
Raw Normal View History

2024-04-23 04:34:15 +02:00
#!/usr/bin/env bash
export WM="dwm"
wmpid(){
tree="$(pstree -ps $$)"
tree="${tree#*$WM(}"
echo "${tree%%)*}"
}
kill -HUP "$(wmpid)"