Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 95:24:31 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,417 |
I did not want to install Caffeine so I prompted ChatGPT to write a script that keeps theI had AI write a program for me to prune a folder, the inverse of what I normally do, I wanted all
screensaver from activating when you don't want it to activate. IE, while watching videos.
NoDoze checks once every 50 seconds (feel free to increase this numeral) to see if you are watching
a video on SMPlayer or on YouTube. If you are using either one, then the screensaver won't activate.
Works great!
---
#!/bin/bash
# Check if smplayer is running.
is_smplayer_running() {
pgrep smplayer > /dev/null
}
# Check if the browser's active tab title contains "YouTube" and "-". is_youtube_open() {
active_window=$(xdotool getactivewindow getwindowname)
echo "$active_window" | grep -iq "YouTube" && echo "$active_window" | grep -iq "Mozilla"
}
while true;
do if is_smplayer_running || is_youtube_open;
then xdotool key Shift
fi
# Wait for 50 seconds before checking again. Increase this delay if needed. sleep 50
done
I had AI write a program for me to prune a folder, the inverse of what I normally do, I wanted all files BUT a small list deleted. And it did it.
I did tweak it a bit but I'm a happy camper.
I did not want to install Caffeine so I prompted ChatGPT to write a script that keeps the screensaver from activating when you don't want it to activate. IE, while watching videos.
NoDoze checks once every 50 seconds (feel free to increase this numeral) to see if you are watching a video on SMPlayer or on YouTube. If you are using either one, then the screensaver won't activate. Works great!
---
#!/bin/bash
# Check if smplayer is running.
is_smplayer_running() {
pgrep smplayer > /dev/null
}
# Check if the browser's active tab title contains "YouTube" and "-". is_youtube_open() {
active_window=$(xdotool getactivewindow getwindowname)
echo "$active_window" | grep -iq "YouTube" && echo "$active_window" | grep -iq "Mozilla"
}
while true;
do if is_smplayer_running || is_youtube_open;
then xdotool key Shift
fi
# Wait for 50 seconds before checking again. Increase this delay if needed. sleep 50
done
On Sun, 06 Oct 2024 19:40:52 -0300
"Dr. Noah Bodie" <noah@bodie.not> wrote:
I did not want to install Caffeine so I prompted ChatGPT to write a
script that keeps the screensaver from activating when you don't want it
to activate. IE, while watching videos.
Honest question
What is purpose to use screensaver. New screens don't need saver?
On Sun, 06 Oct 2024 19:40:52 -0300
"Dr. Noah Bodie" <noah@bodie.not> wrote:
I did not want to install Caffeine so I prompted ChatGPT to write a
script that keeps the screensaver from activating when you don't want it
to activate. IE, while watching videos.
Honest question
What is purpose to use screensaver. New screens don't need saver?
On Sun, 06 Oct 2024
"Dr. Noah Bodie" <noah@bodie.not> wrote:
I did not want to install Caffeine so I prompted ChatGPT to write a
script that keeps the screensaver from activating when you don't want it
to activate. IE, while watching videos.
Honest question
What is purpose to use screensaver. New screens don't need saver?
Have you monitored the environment, to watch what the script is doing ?
For example, "xev" in a Terminal session, should see the Shift key being pressed.
First, monitor "xev" without the script running, then start the script and hands-off-keyboard
and watch xev output sent to Terminal.
Paul
On Sun, 06 Oct 2024 19:40:52 -0300 "Dr. Noah Bodie" <noah@bodie.not>
wrote:
I did not want to install Caffeine so I prompted ChatGPT to write a
script that keeps the screensaver from activating when you don't want
it to activate. IE, while watching videos.
Honest question What is purpose to use screensaver. New screens don't
need saver?
On Sun, 06 Oct 2024 19:40:52 -0300
"Dr. Noah Bodie" <noah@bodie.not> wrote:
I did not want to install Caffeine so I prompted ChatGPT to write a
script that keeps the screensaver from activating when you don't want it
to activate. IE, while watching videos.
Honest question
What is purpose to use screensaver. New screens don't need saver?
On 10/7/24 06:53, yossarian wrote:
On Sun, 06 Oct 2024 19:40:52 -0300It is basically a tool for office users to keep others
"Dr. Noah Bodie" <noah@bodie.not> wrote:
I did not want to install Caffeine so I prompted ChatGPT to write aHonest question
script that keeps the screensaver from activating when you don't want it >>> to activate. IE, while watching videos.
What is purpose to use screensaver. New screens don't need saver?
from looking at their display and tools in use. Also some
people like to look at a good screen saver. If you do not
run, and not even I do, a cathorde ray tub monitor you are
saving the screen brom burning in whatever you are displaying.
bliss