Skip to content

shirafukayayoi/foo_timesleep

Repository files navigation

foo_timesleep

English

foo_timesleep is a sleep timer component for foobar2000.
It provides both:

  • Sleep timer commands under Playback > Sleep Timer
  • An always-visible Sleep Timer toolbar item for Columns UI (Toolbars)

Features

  • Start a sleep timer in minutes (preset values)
  • Stop playback when the timer reaches zero
  • Show remaining time
  • Cancel an active timer

Requirements

  • Windows
  • foobar2000
  • Columns UI (for toolbar mode)
  • Visual Studio Build Tools (MSBuild / C++ toolset)

Build

Run in project root:

./build.ps1

Outputs:

  • DLL: _result/x64_Release/bin/foo_timesleep.dll
  • Component package: _result/foo_timesleep.fb2k-component

Install

  1. Open File > Preferences > Components in foobar2000
  2. Click Install... and select _result/foo_timesleep.fb2k-component
  3. Restart foobar2000

Usage

Menu mode

  • Playback > Sleep Timer > Sleep Timer...
  • Playback > Sleep Timer > Show Sleep Timer Remaining

Columns UI toolbar mode

  1. Open File > Preferences > Display > Columns UI > Layout
  2. Right click where you want to insert the item
  3. Select Add child > Toolbars > Sleep Timer
  4. Click Apply / OK

Troubleshooting

  • Sleep Timer does not appear:
    • Reinstall the component
    • Fully restart foobar2000
    • Check Toolbars (not Panels)
  • UI looks clipped:
    • Increase toolbar width

License / Redistribution

This repository contains third-party code (foobar2000 SDK / pfc / libPPUI / Columns UI SDK).
Keep original license/copyright notices when redistributing.


日本語

foo_timesleep は foobar2000 用のスリープタイマーコンポーネントです。
次の 2 つを提供します。

  • Playback > Sleep Timer メニューからの操作
  • Columns UI の Toolbars に常時表示できる Sleep Timer ツールバー

機能

  • 分単位のスリープタイマー開始(プリセット選択)
  • タイマー終了時に再生停止
  • 残り時間表示
  • タイマーキャンセル

必要環境

  • Windows
  • foobar2000
  • Columns UI(ツールバー表示を使う場合)
  • Visual Studio Build Tools(MSBuild / C++ ツールセット)

ビルド

プロジェクトルートで実行:

./build.ps1

生成物:

  • DLL: _result/x64_Release/bin/foo_timesleep.dll
  • コンポーネント: _result/foo_timesleep.fb2k-component

インストール

  1. foobar2000 の File > Preferences > Components を開く
  2. Install..._result/foo_timesleep.fb2k-component を選択
  3. foobar2000 を再起動

使い方

メニュー操作

  • Playback > Sleep Timer > Sleep Timer...
  • Playback > Sleep Timer > Show Sleep Timer Remaining

Columns UI ツールバー表示

  1. File > Preferences > Display > Columns UI > Layout
  2. 追加したい場所で右クリック
  3. Add child > Toolbars > Sleep Timer を選択
  4. Apply / OK

トラブルシュート

  • Sleep Timer が表示されない:
    • コンポーネント再インストール
    • foobar2000 の完全再起動
    • Panels ではなく Toolbars を確認
  • 表示が崩れる:
    • ツールバー幅を広げる

ライセンス / 再配布

このリポジトリにはサードパーティコード(foobar2000 SDK / pfc / libPPUI / Columns UI SDK)が含まれます。
再配布時は、元のライセンス文書と著作権表示を保持してください。