62
submitted 1 week ago* (last edited 6 days ago) by null_dot@lemmy.dbzer0.com to c/linux@lemmy.ml

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.

Edit: I'm narrowing in on a solution.

Firstly, a lot of previously available solutions don't work because of recently implemented security features in gnome.

You need to enter unsafe mode by entering this:

global.context.unsafe_mode = true

in the looking glass tool which you can access by running lg in the alt + f2 dialog

thereafter, this can grab the active window title for you:

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "global.display.focus_window.title"
you are viewing a single comment's thread
view the rest of the comments
[-] HelloRoot@lemy.lol 3 points 1 week ago* (last edited 1 week ago)

"searchable" in the sense that you can ask an AI agent what you were doing.

I am pretty sure you could ask it to generate per project timetables from that.

Or at the very least, you can use the codebase to see how they take continuous screenshots. Especially since all the wayland code is clearly seperated in the fork.

[-] null_dot@lemmy.dbzer0.com 4 points 1 week ago

Yeah there's a video on the upstream project page that shows how it works. It's notreally "AI" so much as OCR. Like if you search "wayland" it will show you the times at which that word was visible on the screen.

I don't think it accepts a "prompt" like "make a list of activities for me".

I did have a quick look at how they're doing it. It's just a different python lib.

I did however discover, from looking at this project, that the sound and animation from taking a screenshot originates from gnome, not the thing taking the screen shot. There's some notes in this project explaining how to disable that.

With this in mind, other screenshot apps like flameshot will be fine.

[-] HelloRoot@lemy.lol 1 points 1 week ago* (last edited 1 week ago)

I don’t think it accepts a “prompt” like “make a list of activities for me”.

Ah I see, my bad.

Another idea that might or might not work is filming a video at 0.0011 fps (1 frame every 15 min). Not sure if it accepts values that low or handles them correctly.

wf-recorder --framerate=0.0011 --file=timelapse.mkv

Or maybe do a 1 frame video on a loop

while true; do
  wf-recorder -f frame_$(date +%Y%m%d_%H%M%S).png -t 1
  sleep 900
done

As that will use a different interface it might not flash the screen. Just random ideas, no clue if they would work.

Good luck with your project.

this post was submitted on 07 Oct 2025
62 points (100.0% liked)

Linux

57274 readers
1155 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS