scripts/waybar/waybar-cpu.sh

8 lines
102 B
Bash
Executable File

#!/bin/bash
if [ "$(pgrep -c htop)" -gt 0 ]; then
pkill htop
else
/usr/bin/uxterm -e htop
fi