Skip to main content

Lowfi In tmux

If you like background music while coding, this repo includes a small helper that runs lowfi inside a tmux session.

Preconditionsโ€‹

  • tmux is installed and running.
  • lowfi is installed.
  • Tracklists exist under ~/Library/Application Support/lowfi.

Commandโ€‹

  • ,tmux-lowfi

Source:

Stepsโ€‹

Play/pause:

,tmux-lowfi p

Skip:

,tmux-lowfi s

Next tracklist:

,tmux-lowfi nt

Quit (kills the tmux session):

,tmux-lowfi q

Verificationโ€‹

tmux has-session -t lowfi

Expected:

  • Exit 0 when the session is running.
  • Exit non-zero after ,tmux-lowfi q.

Rollback / Undoโ€‹

  • Stop and remove session:
,tmux-lowfi q
  • Remove current tracklist state file if needed:
rm -f /tmp/tmux-lowfi-current-tracklist

Where Tracklists Come Fromโ€‹

Tracklists live under:

  • ~/Library/Application Support/lowfi

They are pulled via chezmoi externals: