scripts/waybar/waybar-cpu.sh

8 lines
109 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
2021-08-11 22:41:22 +00:00
/usr/bin/xterm -e htop
2020-09-11 15:00:39 +00:00
fi