62
Wayland - How Best to Log My Own Desktop Activities
(lemmy.dbzer0.com)
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.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Chatgt says build a scrip using a few tools. xdotool and scrot. I don't know if this code is good or not. And some hashes are making markdown headers. How do we paste code on here?
#!/bin/bash
Set interval (in seconds)
INTERVAL=10
Output directories
LOG_FILE="$HOME/window_log.txt" IMG_DIR="$HOME/window_snaps" mkdir -p "$IMG_DIR"
while true; do # Get timestamp TS=$(date "+%Y-%m-%d_%H-%M-%S")
done
There is an etiquette to not just copy and pasting from ChatGPT. The fact you couldn’t verify the code yourself is a bigger issue.
I understand you may have thought this may help, it really does not.
Sure, seemed OP wasn't a google searcher so I tried to show an example of two programs coming together. The code seems plausible, but its there as an example of steps. I find LMM is typically trash, but can get you started. But your etiquette note is noted
Maybe ask chatgpt whether xdotool is compatible with wayland.
I get that you're trying to help but, this is not the way.
i figured Id leave some searching to you, lol.
This might shock you but... I have actually spent some time looking into this.
The tools you've suggested aren't compatible with Wayland. It seems that alternatives don't really exist, or cause the problems I mentioned in my post.
Additionally, I have a few decades experience with Linux and while I'm not some amazing Linux guru I do know what a bash script is and how to "link two programs together".
Finally, like everyone on the planet I also know what chatgpt is and might even consider using it to create a bash script if I knew what tools were compatible with Wayland.
No worries, the post made it sound like you had not tries searching. So I assumed your were a new person that had put in no effort yet. My mistake
No worries, your comments make you sound insufferable.
Lol, this is why the Linux community gets a bad rap. Somebody tries to be helpful and the community gets hostile. Hope you have a good rest of your week dude.
It's funny you say that. I was thinking exactly the same thing about your comments.
I've asked for help, you posted a chatgpt response, and now you've claimed eleventy times that I seem like I don't know where to start or don't seem like the type to search things.
"OP should've googled it first" is one of the hallmarks of toxic communities.
Pot, meet kettle
@BCsven
This is so much less helpful than just posting "I don't know" or "beats me".
First, if you're gonna post code, put it in a code block. And nevermind you not knowing if the ""code is good"", it doesn't even adhere to the question that was asked; the two programs you suggested are not even wayland compatible tools.
@null_dot
OP seemed like they didn't know where to start, so linking programs together was my suggestion. With a rough example. If thats against etiquette the noted.
As for helpfulness, where are the code block entries. I have preview, hyperlink, inage, bold, italic,quotes,lists and spoilers across the bottom, and no codeblock.
As for Wayland compatible this is where, somebody reads between the lines. If those two aren't Wayland compatible search for Wayland compatible tool like "xxxxxx".