#!/bin/sh [ "$1" = "-r" ] && pkill dbar && { dbar & exit; } [ ! "$(pgrep dbar)" ] && { dbar & exit; } pkill -P "$(cat "$HOME/.cache/dbar.pid")" sleep