I’m self employed. I need to record how much time I spend on whatever task for whatever client.

Sounds simple, but I’m terrible at it. I always get to the end of the day without having recorded anything and not knowing what I’ve actually done.

Basically, I’d like to create a text log of the active window title, and take a screen cap.

I’d like to do this periodically as in every 15 minutes or so.

For the text log I just haven’t been able to achieve this at all.

For the screen caps I can use flameshot to take a screenshot from the CLI, but it makes a sound and shows an animation which is sub-optimal.

Any suggestions of where to look much appreciated.

Edit: I’m not asking for a time tracking app. I want something to log the active window title and take a screen cap so I can figure out what I was doing and write it in my time tracking app.

  • hollyberries@programming.dev
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    16 hours ago

    What’s your window manager?

    You can use grim+slurp to take screenshots. Scroll down to the Wayland section for a snippet:

    https://wiki.archlinux.org/title/Screen_capture

    I keep my desktop muted so I am not sure if it makes a sound or not. If you wrap the commands into a timer loop it will do what you’re looking for.

    For the window title you can likely use your window manager’s IPC calls to get the active window title or list of windows on a workspace. My wayland experience is limited to hyprland and if you haven’t found a solution when I get home from work I can post the jank utility I made in rust to output the data I needed for my Eww bar.

    • null_dot@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 hours ago

      I’m using a default debian / gnome setup, so that’s mutter + wayland.

      Grim seems to error with compositor doesn't support wlr-screencopy-unstable-v1 which I don’t really understand. Searching that term suggests that gnome will never support wlr-anything.