scripts/waybar/waybar-cpu.sh

8 lines
110 B
Bash
Raw Normal View History

2020-09-11 15:00:39 +00:00
#!/bin/bash
if [ "$(pgrep -c htop)" -gt 0 ]; then
2020-11-23 09:35:26 +00:00
pkill htop
2020-09-11 15:00:39 +00:00
else
2020-11-23 09:35:26 +00:00
/usr/bin/uxterm -e htop
2020-09-11 15:00:39 +00:00
fi