dotfiles/.local/bin/renew-dwm
2024-04-23 07:46:41 +05:00

12 lines
138 B
Bash
Executable File

#!/usr/bin/env bash
export WM="dwm"
wmpid(){
tree="$(pstree -ps $$)"
tree="${tree#*$WM(}"
echo "${tree%%)*}"
}
kill -HUP "$(wmpid)"