2023-12-16 17:51:21 -05:00
|
|
|
inactive="{
|
|
|
|
\"text\": \"x\",
|
|
|
|
\"tooltip\": \"emacs is not running.\"
|
|
|
|
}\n"
|
|
|
|
active="{
|
|
|
|
\"text\": \"e+\",
|
|
|
|
\"tooltip\": \"emacs is running.\"
|
|
|
|
}\n"
|
2023-06-18 09:55:44 -04:00
|
|
|
pgrep emacs >/dev/null
|
|
|
|
if [ $? -eq 1 ]
|
|
|
|
then
|
2023-12-16 17:51:21 -05:00
|
|
|
echo $inactive
|
2023-06-18 09:55:44 -04:00
|
|
|
else
|
2023-12-16 17:51:21 -05:00
|
|
|
echo $active
|
2023-06-18 09:55:44 -04:00
|
|
|
fi
|