Cinnamon のアプレット「Timer with notifications」を愛用しています。主に「艦これ」で明石の泊地修理の 20分タイマーに使っています。
以下、自分向けのカスタマイズ手順の記録です。
1. アイコンの色を調整
タイマー起動中のパネル上のアイコン色を選べるのですが、なぜか初期値は「未指定」 です。
編集するファイルは以下です。
~/.local/share/cinnamon/applets/cinnamon-timeer@jake1164/3.4/stylesheet.css
これを
.timer-running .system-status-icon { }
こうします。
.timer-running .system-status-icon { color: orange; }
2. プチバグの修正
タイマーを自動的に繰り返す設定の場合、やはりパネル上のアイコンの色が指定通りに変化しない、というバグです。
たった 1行のコードを追加すると修正されるので早いとこ Pull Request を出せ、という話なんですがすみません。
(でも、色を判定するロジックは三項演算子を使っていてデバッグが大変でした)
編集するファイルは以下です。
~/.local/share/cinnamon/applets/cinnamon-timeer@jake1164/3.4/applet.js
423行目のこれを
if (this.AutoLoopPromptOn) { this.timerDuration = this.timerDurationLoop; this.doStartTimer(); }
こうします。
if (this.AutoLoopPromptOn) { this.timerDuration = this.timerDurationLoop; this.alarmOn = false; this.doStartTimer(); }
2つとも編集が終わったら、Cinnamon の再起動 or PC 再起動で反映させます。