Skip to content

liminchian/pomobar-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pomobar-rs

pomobar-rs is a Waybar plugin that implements a Pomodoro timer. The plugin utilizes socket-based communication between Waybar and pomobar.

Installation

First, clone the repository:

git clone https://github.com/liminchian/pomobar-rs.git
cd pomobar-rs

Build the project using cargo:

cargo build --release

Install the binaries by copying them to their respective locations:

  • pomobar (server) to ~/.local/bin/
  • pomobar-cli (client) to ~/.config/waybar/
cp target/release/pomobar ~/.local/bin/pomobar
cp target/release/pomobar-cli ~/.config/waybar/pomobar-cli

Usage

Launch the pomobar server before starting Waybar:

pomobar

Add the following configuration to your Waybar config:

{
  "custom/pomobar": {
    "format": "{} {icon}",
    "format-icons": {
      "idle": "",
      "paused": "",
      "work": "",
      "short_break": "",
      "long_break": "",
    },
    "interval": 1,
    "exec": "${HOME}/.config/waybar/pomobar-cli status",
    "on-click": "${HOME}/.config/waybar/pomobar-cli toggle",
    "on-click-middle": "${HOME}/.config/waybar/pomobar-cli reset",
    "return-type": "json",
  },
}

Screenshots

Notification with mako

pomobar-notification

Tootip

pomobar-tooltip

To see the notification icon, copy the icon file to /usr/share/icons/hicolor/64x64/apps/pomobar.png.

This project is inspired by mt190502/pomobar

About

The pomodoro plugin for waybar.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages