matryer / matryer/xbar

Expose CycleInterval as parameter

Open
#802 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
18.1k
Forks
656
PR merge metrics
No merged PRs in 30d

Description

Hi, nice project! I wish there was something similar for KDE Linux.

Seems like `CycleInterval` is hardcoded to 5 secs [here](https://github.com/matryer/xbar/blob/v2.1.7-beta/pkg/plugins/plugin.go#L166). Would it be a nice feature to expose it as a [line parameter](https://github.com/matryer/xbar-plugins/blob/main/CONTRIBUTING.md#parameters)?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in pkg/plugins/plugin.go around the hardcoded CycleInterval at line 166, then review the linked xbar-plugins CONTRIBUTING.md section on line parameters. Define what parameter input should control the interval and verify that the default five-second behavior remains unchanged when no parameter is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
desktop
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.