Code Monkey home page Code Monkey logo

timewarrior-status-i3blocks-script's Introduction

What is this?

This projects was created to give rust a try. The code might not make a lot of sense. If you have hints on what to do differently, then please leave an issue!

There is a practical purpose for this code. There is the cmd tool called taskwarrior. This tool is supposed to work with the i3 Window Manager and a plugin for it called i3blocks.

It will give you the current status of timewarrior in the bar. This will look as follows:

When there is an active time tracking (tags: i3block test timewarrior; duration: almost 25 min):

Section of a status bar reading'i3block test timewarrior [0:24:48]'

When no time tracking is active:

Section of a status bar reading 'No time tracking active'

Setup

Since I use regolith, which uses their own i3xrocks, I am not sure about the the exact set up for pure i3blocks - specifically the i3blocks folder and how to refresh the view.

  1. Build the src/main.rs using rustc. Put the binary into the a path variable path (i.e. /usr/local/bin).
  2. Put the 03_timewarrior-status file into your i3blocks folder.
  3. Refresh the view (posslibly try [mod] + [shift] + r)

timewarrior-status-i3blocks-script's People

Contributors

timothygillespie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

timewarrior-status-i3blocks-script's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.