scripts/waybar/waybar-cpu.sh

8 lines
102 B
Bash
Raw Normal View History

2020-09-11 15:00:39 +00:00
#!/bin/bash
if [ "$(pgrep -c htop)" -gt 0 ]; then
2023-01-06 19:41:31 +00:00
pkill htop
2020-09-11 15:00:39 +00:00
else
2023-01-06 19:41:31 +00:00
/usr/bin/uxterm -e htop
2020-09-11 15:00:39 +00:00
fi