Skip to content
Snippets Groups Projects
Unverified Commit 14f22788 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

simplify output && update readme

parent e4181eb0
No related branches found
No related tags found
No related merge requests found
......@@ -17,4 +17,8 @@ d.fish使用了gnome的notify-send,kde/其他de用户请根据自己的情况
d.fish使用了cvlc来播放mp3,其他播放器用户请根据自己情况进行修改。请将电脑声音调大。
## Tips
使用./informed.sh来停止一次提醒。
警惕以下情形: 老师发出一个题,脚本发出警报,你成功答题,老师在第一个题过期之前发出第2个题,你不知道。
......@@ -5,10 +5,11 @@
set _url 'https://www.teachermate.com.cn/wechat/wechat/guide/answer?openid=161067e64d98cbb23d3ceb2947f004a8'
function _is_informed
if test (cat /tmp/gay_known) = "known"
# May not exist.
if test (cat /tmp/gay_known 2>&1) = "known"
echo "LOG> skipped because informed."
return 0
# ok
# ok.
else
echo "LOG> not informed. Launching cvlc."
return 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment