toggldesktop icon indicating copy to clipboard operation
toggldesktop copied to clipboard

Show timer in topbar under Linux

Open sojusnik opened this issue 7 years ago • 15 comments

Proposing to add a timer instead of the generic Toggl icon to the topbar of Linux, f.i. on Ubuntu Gnome, like it's already implemented in OSX.

sojusnik avatar Mar 27 '17 15:03 sojusnik

This need some investigation. I'm not sure this is easily doable. From the top of my head I can't name any applications on Linux that have text in their top bar/menubar icon.

IndrekV avatar Mar 30 '17 13:03 IndrekV

It seems pretty straightforward to me. This Gnome extension has it implemented graphically and as a timer, as shown here.

sojusnik avatar Mar 30 '17 13:03 sojusnik

Awesome! I'll check it out.

IndrekV avatar Mar 30 '17 13:03 IndrekV

Maybe you could also combine this with a pomodoro timer.

sojusnik avatar Mar 30 '17 13:03 sojusnik

Yeah! Please, this would be awesome, as the desktop application is very unuseful compared to Windows & Mac.

SergiArias avatar Nov 21 '17 09:11 SergiArias

+1 for this. That will be very useful and a game changer

carlisgg avatar Dec 14 '17 13:12 carlisgg

I think it can be done by using this guide and the show current time entry method in the API. I will try it when I have some time and share my thoughts.

Please, if someone has some time and coding abilities to try, please don't wait for me as I will be slow :)

SergiArias avatar Jan 22 '18 11:01 SergiArias

Any update on this?

sachinaaglave avatar Nov 21 '18 07:11 sachinaaglave

There are no concrete plans on what to do about this because we'd have to implement a full GNOME (or Plasma, or Mate, or...) extension to do this. There are also other use cases for DE extensions that we could implement in the future... The thing is, I'm not saying this cannot happen in the future BUT we're not planning to do this at this moment, sorry. I'll leave this issue open so we know there's demand for this feature.

MartinBriza avatar Apr 30 '19 14:04 MartinBriza

If anyone looking for this feature in Gnome 3, I've been using https://github.com/p-e-w/argos with a one-liner script to report on the current task and the timer. It's not interactive, so you cannot click there to switch task etc ... but it does update every few seconds, even added some color codes per project.

daroczig avatar Apr 30 '19 14:04 daroczig

I don't think we're implementing a GNOME shell extension any time soon but if anybody from the community wants to do so, I'm open to creating a simple DBus API for data retrieval. Feel free to ping me at [email protected] for working out a specification for the API.

MartinBriza avatar Sep 24 '20 11:09 MartinBriza

Stumbled over this as I would also like to display the current task on Gnome,

@MartinBriza I think a DBus API would be great. Maybe for inspiration check https://github.com/gnome-pomodoro/gnome-pomodoro which send DBus notifications on start / pause / time elapsed etc. See below for an example captured with dbus-monitor, BTW inbetween is TogglDesktop which updates its tooltip every 500ms even when the timer is not running, even though that tooltip is not visible on Gnome (maybe it is on KDE).

signal time=1614379412.486838 sender=:1.36 -> destination=(null destination) serial=400 path=/org/gnome/Pomodoro; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.gnome.Pomodoro"
   array [
      dict entry(
         string "State"
         variant             string "pomodoro"
      )
      dict entry(
         string "Elapsed"
         variant             double 0
      )
      dict entry(
         string "StateDuration"
         variant             double 1500
      )
   ]
   array [
   ]
signal time=1614379412.749477 sender=:1.4637 -> destination=(null destination) serial=2754 path=/StatusNotifierItem; interface=org.kde.StatusNotifierItem; member=NewToolTip
signal time=1614379413.244812 sender=:1.4637 -> destination=(null destination) serial=2755 path=/StatusNotifierItem; interface=org.kde.StatusNotifierItem; member=NewToolTip
signal time=1614379413.374838 sender=:1.36 -> destination=(null destination) serial=401 path=/org/gnome/Pomodoro; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.gnome.Pomodoro"
   array [
      dict entry(
         string "Elapsed"
         variant             double 1.0788
      )
   ]
   array [
   ]

@daroczig is your script available anywhere?

ni-ka avatar Feb 26 '21 23:02 ni-ka

@MartinBriza I'd very much like to work on it, however I tried sending an email and received a response saying that your email doesn't exist...

alexandrebarbaruiva avatar Jun 14 '22 01:06 alexandrebarbaruiva

Yup, sadly I haven't been working for Toggl for over a year and as far as I know, there's no further development happening in the Linux app - or at least, that's what the project homepage implies.

MartinBriza avatar Jun 14 '22 06:06 MartinBriza

Sad to hear it. Wish you success on your journey!

alexandrebarbaruiva avatar Jun 14 '22 10:06 alexandrebarbaruiva