Skip to main content

Pear Desktop

What

Shows the currently playing song in Pear Desktop.

Setup

You need to enable the API Server plugin in the Pear Desktop settings. To do this, open the app, go to Plugins > API Server and enable it.

From the CLI, run the following command to set the authentication token:

oh-my-posh auth pear

This triggers a pop-up window in Pear Desktop asking you to allow access. Once allowed, the segment is authenticated and ready to use. The authentication flow assumes the API Server runs on the default port (26538); set the port option if you configured a different one.

Sample Configuration

×  Men I Trust - Show Me How _ ohmyposh.dev ×  Men I Trust - Show Me How _ ohmyposh.dev

Options

NameTypeDefaultDescription
portint26538the port of the Pear Desktop API Server
playing_iconstring\uf04b text/icon to show when playing
paused_iconstring\uf04c text/icon to show when paused
http_timeoutint5000in milliseconds - the timeout for http request

Template (info)

default template
{{ .Icon }}{{ .Artist }} - {{ .Track }}

Properties

NameTypeDescription
.Statusstringplayer status (playing, paused)
.Artiststringcurrent artist
.Trackstringcurrent track
.Iconstringicon (based on .Status)