Ubersicht という新しいアプリを見つけました。これは、Mac の GeekTool デスクトップに代わるまともなツールのようです。ウィジェットはコーヒー スクリプトを使用します。
すばらしいスクリプトを見つけました: https://github.com/bgartenmann/uebersicht-only-this-widget
スクリプトには指示がありません。これは、デスクトップ上の today.txt というテキスト ファイルを参照します。アイデアは、その日のタスクを入れて、ウィジェットに表示することです。
todayfile = '~/Desktop/today.txt'
command: "cat #{today file}"
refreshFrequency: 5000
style: (a long list of css went here, did not think it was relevant)
render: (output) ->
placeholder = "_____________"
outputArray = output.split "*"
goal = outputArray[0] || placeholder
step1 = outputArray[1] || placeholder
step2 = outputArray[2] || placeholder
step3 = outputArray[3] || placeholder
<p>If nothing else, today I am going to <span class="fillout">#{goal}</span>.<br />
I am going to do this by <span class="fillout">#{step1}</span> then <span class="fillout">#{step2}</span> then <span class="fillout">#{step3}</span>.<br />
<span class="motivation">If I do this and only this,<br /> today will be a <strong>good</strong> day.</span>"
.txt ファイルのエントリをフォーマットして、エントリがウィジェットの正しい場所に配置されるようにする方法がわかりません。step1 を参照する複数の方法を試しましたが、その一例が..
step1 = 「このステップ」
テキストを挿入すると、常に最初の行になります。.txt に入力された「タスク」がウィジェットの意図した表示場所になるようにするにはどうすればよいですか?