How to enable popups after every one hour for exercise/break?
I want to take a break from my system after every one hour. How to enable Popups(I mean Pop ups, not notifications).
OS: Ubuntu 16.04 LTS, Unity DE
notification
add a comment |
I want to take a break from my system after every one hour. How to enable Popups(I mean Pop ups, not notifications).
OS: Ubuntu 16.04 LTS, Unity DE
notification
How aboutxcowsay -t 0 "Coffee Break!"
and run it in a cron job every hour.
– stumblebee
Mar 5 '18 at 21:22
1
Relevant: askubuntu.com/questions/370821/break-reminder-for-ubuntu or askubuntu.com/questions/696620/…
– Byte Commander
Mar 5 '18 at 21:29
@stumblebee will xwindows programs run from cron, and display on screen?
– RonJohn
Mar 5 '18 at 21:34
1
@RonJohn Yeppers!0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
– stumblebee
Mar 5 '18 at 22:23
add a comment |
I want to take a break from my system after every one hour. How to enable Popups(I mean Pop ups, not notifications).
OS: Ubuntu 16.04 LTS, Unity DE
notification
I want to take a break from my system after every one hour. How to enable Popups(I mean Pop ups, not notifications).
OS: Ubuntu 16.04 LTS, Unity DE
notification
notification
edited Mar 5 '18 at 21:12
Siddharth Barhate
asked Mar 5 '18 at 21:05
Siddharth BarhateSiddharth Barhate
187
187
How aboutxcowsay -t 0 "Coffee Break!"
and run it in a cron job every hour.
– stumblebee
Mar 5 '18 at 21:22
1
Relevant: askubuntu.com/questions/370821/break-reminder-for-ubuntu or askubuntu.com/questions/696620/…
– Byte Commander
Mar 5 '18 at 21:29
@stumblebee will xwindows programs run from cron, and display on screen?
– RonJohn
Mar 5 '18 at 21:34
1
@RonJohn Yeppers!0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
– stumblebee
Mar 5 '18 at 22:23
add a comment |
How aboutxcowsay -t 0 "Coffee Break!"
and run it in a cron job every hour.
– stumblebee
Mar 5 '18 at 21:22
1
Relevant: askubuntu.com/questions/370821/break-reminder-for-ubuntu or askubuntu.com/questions/696620/…
– Byte Commander
Mar 5 '18 at 21:29
@stumblebee will xwindows programs run from cron, and display on screen?
– RonJohn
Mar 5 '18 at 21:34
1
@RonJohn Yeppers!0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
– stumblebee
Mar 5 '18 at 22:23
How about
xcowsay -t 0 "Coffee Break!"
and run it in a cron job every hour.– stumblebee
Mar 5 '18 at 21:22
How about
xcowsay -t 0 "Coffee Break!"
and run it in a cron job every hour.– stumblebee
Mar 5 '18 at 21:22
1
1
Relevant: askubuntu.com/questions/370821/break-reminder-for-ubuntu or askubuntu.com/questions/696620/…
– Byte Commander
Mar 5 '18 at 21:29
Relevant: askubuntu.com/questions/370821/break-reminder-for-ubuntu or askubuntu.com/questions/696620/…
– Byte Commander
Mar 5 '18 at 21:29
@stumblebee will xwindows programs run from cron, and display on screen?
– RonJohn
Mar 5 '18 at 21:34
@stumblebee will xwindows programs run from cron, and display on screen?
– RonJohn
Mar 5 '18 at 21:34
1
1
@RonJohn Yeppers!
0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
– stumblebee
Mar 5 '18 at 22:23
@RonJohn Yeppers!
0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
– stumblebee
Mar 5 '18 at 22:23
add a comment |
2 Answers
2
active
oldest
votes
You can run a cron every hour.
crontab -e
Add this line (if you have xcowsay installed):
0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
To install xcowsay:
sudo apt install xcowsay
Screenshot:
I am a beginner in using crons. I cant understand where to head after installing xcowsay. Where shoud I add the line"0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!" "? Also, do I need to enter this command "crantab -e" everytime in order for cron to work?
– Siddharth Barhate
Mar 6 '18 at 3:37
@SiddharthBarhate You only need to runcrontab -e
when you want to edit your cron jobs. After that they will always automatically run at the times you specify. The line that you are adding should be at the bottom. Have a look at the cronhowto for more information.
– stumblebee
Mar 6 '18 at 3:51
the cron jobs are runing after 10 mins, not one hour? Also please edit your answer to crontab -e instead of crantab -e
– Siddharth Barhate
Mar 6 '18 at 8:33
@SiddharthBarhate fixed typo ty. The first field is minutes which is set to "0" in this example. So if you started the cron at 8:50 then it would run at 9:00 (10 minutes later). The next run would be at 10:00 and every hour thereafter.
– stumblebee
Mar 6 '18 at 18:46
add a comment |
Also, you may want to consider the package workrave
. It can be set to lock the screen after an hour (or any other time period) and suggest exercises.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1012194%2fhow-to-enable-popups-after-every-one-hour-for-exercise-break%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can run a cron every hour.
crontab -e
Add this line (if you have xcowsay installed):
0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
To install xcowsay:
sudo apt install xcowsay
Screenshot:
I am a beginner in using crons. I cant understand where to head after installing xcowsay. Where shoud I add the line"0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!" "? Also, do I need to enter this command "crantab -e" everytime in order for cron to work?
– Siddharth Barhate
Mar 6 '18 at 3:37
@SiddharthBarhate You only need to runcrontab -e
when you want to edit your cron jobs. After that they will always automatically run at the times you specify. The line that you are adding should be at the bottom. Have a look at the cronhowto for more information.
– stumblebee
Mar 6 '18 at 3:51
the cron jobs are runing after 10 mins, not one hour? Also please edit your answer to crontab -e instead of crantab -e
– Siddharth Barhate
Mar 6 '18 at 8:33
@SiddharthBarhate fixed typo ty. The first field is minutes which is set to "0" in this example. So if you started the cron at 8:50 then it would run at 9:00 (10 minutes later). The next run would be at 10:00 and every hour thereafter.
– stumblebee
Mar 6 '18 at 18:46
add a comment |
You can run a cron every hour.
crontab -e
Add this line (if you have xcowsay installed):
0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
To install xcowsay:
sudo apt install xcowsay
Screenshot:
I am a beginner in using crons. I cant understand where to head after installing xcowsay. Where shoud I add the line"0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!" "? Also, do I need to enter this command "crantab -e" everytime in order for cron to work?
– Siddharth Barhate
Mar 6 '18 at 3:37
@SiddharthBarhate You only need to runcrontab -e
when you want to edit your cron jobs. After that they will always automatically run at the times you specify. The line that you are adding should be at the bottom. Have a look at the cronhowto for more information.
– stumblebee
Mar 6 '18 at 3:51
the cron jobs are runing after 10 mins, not one hour? Also please edit your answer to crontab -e instead of crantab -e
– Siddharth Barhate
Mar 6 '18 at 8:33
@SiddharthBarhate fixed typo ty. The first field is minutes which is set to "0" in this example. So if you started the cron at 8:50 then it would run at 9:00 (10 minutes later). The next run would be at 10:00 and every hour thereafter.
– stumblebee
Mar 6 '18 at 18:46
add a comment |
You can run a cron every hour.
crontab -e
Add this line (if you have xcowsay installed):
0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
To install xcowsay:
sudo apt install xcowsay
Screenshot:
You can run a cron every hour.
crontab -e
Add this line (if you have xcowsay installed):
0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
To install xcowsay:
sudo apt install xcowsay
Screenshot:
edited Mar 6 '18 at 18:39
answered Mar 5 '18 at 22:12
stumblebeestumblebee
2,28431123
2,28431123
I am a beginner in using crons. I cant understand where to head after installing xcowsay. Where shoud I add the line"0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!" "? Also, do I need to enter this command "crantab -e" everytime in order for cron to work?
– Siddharth Barhate
Mar 6 '18 at 3:37
@SiddharthBarhate You only need to runcrontab -e
when you want to edit your cron jobs. After that they will always automatically run at the times you specify. The line that you are adding should be at the bottom. Have a look at the cronhowto for more information.
– stumblebee
Mar 6 '18 at 3:51
the cron jobs are runing after 10 mins, not one hour? Also please edit your answer to crontab -e instead of crantab -e
– Siddharth Barhate
Mar 6 '18 at 8:33
@SiddharthBarhate fixed typo ty. The first field is minutes which is set to "0" in this example. So if you started the cron at 8:50 then it would run at 9:00 (10 minutes later). The next run would be at 10:00 and every hour thereafter.
– stumblebee
Mar 6 '18 at 18:46
add a comment |
I am a beginner in using crons. I cant understand where to head after installing xcowsay. Where shoud I add the line"0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!" "? Also, do I need to enter this command "crantab -e" everytime in order for cron to work?
– Siddharth Barhate
Mar 6 '18 at 3:37
@SiddharthBarhate You only need to runcrontab -e
when you want to edit your cron jobs. After that they will always automatically run at the times you specify. The line that you are adding should be at the bottom. Have a look at the cronhowto for more information.
– stumblebee
Mar 6 '18 at 3:51
the cron jobs are runing after 10 mins, not one hour? Also please edit your answer to crontab -e instead of crantab -e
– Siddharth Barhate
Mar 6 '18 at 8:33
@SiddharthBarhate fixed typo ty. The first field is minutes which is set to "0" in this example. So if you started the cron at 8:50 then it would run at 9:00 (10 minutes later). The next run would be at 10:00 and every hour thereafter.
– stumblebee
Mar 6 '18 at 18:46
I am a beginner in using crons. I cant understand where to head after installing xcowsay. Where shoud I add the line"0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!" "? Also, do I need to enter this command "crantab -e" everytime in order for cron to work?
– Siddharth Barhate
Mar 6 '18 at 3:37
I am a beginner in using crons. I cant understand where to head after installing xcowsay. Where shoud I add the line"0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!" "? Also, do I need to enter this command "crantab -e" everytime in order for cron to work?
– Siddharth Barhate
Mar 6 '18 at 3:37
@SiddharthBarhate You only need to run
crontab -e
when you want to edit your cron jobs. After that they will always automatically run at the times you specify. The line that you are adding should be at the bottom. Have a look at the cronhowto for more information.– stumblebee
Mar 6 '18 at 3:51
@SiddharthBarhate You only need to run
crontab -e
when you want to edit your cron jobs. After that they will always automatically run at the times you specify. The line that you are adding should be at the bottom. Have a look at the cronhowto for more information.– stumblebee
Mar 6 '18 at 3:51
the cron jobs are runing after 10 mins, not one hour? Also please edit your answer to crontab -e instead of crantab -e
– Siddharth Barhate
Mar 6 '18 at 8:33
the cron jobs are runing after 10 mins, not one hour? Also please edit your answer to crontab -e instead of crantab -e
– Siddharth Barhate
Mar 6 '18 at 8:33
@SiddharthBarhate fixed typo ty. The first field is minutes which is set to "0" in this example. So if you started the cron at 8:50 then it would run at 9:00 (10 minutes later). The next run would be at 10:00 and every hour thereafter.
– stumblebee
Mar 6 '18 at 18:46
@SiddharthBarhate fixed typo ty. The first field is minutes which is set to "0" in this example. So if you started the cron at 8:50 then it would run at 9:00 (10 minutes later). The next run would be at 10:00 and every hour thereafter.
– stumblebee
Mar 6 '18 at 18:46
add a comment |
Also, you may want to consider the package workrave
. It can be set to lock the screen after an hour (or any other time period) and suggest exercises.
add a comment |
Also, you may want to consider the package workrave
. It can be set to lock the screen after an hour (or any other time period) and suggest exercises.
add a comment |
Also, you may want to consider the package workrave
. It can be set to lock the screen after an hour (or any other time period) and suggest exercises.
Also, you may want to consider the package workrave
. It can be set to lock the screen after an hour (or any other time period) and suggest exercises.
answered Mar 17 at 13:16
Cedric KnightCedric Knight
15114
15114
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1012194%2fhow-to-enable-popups-after-every-one-hour-for-exercise-break%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How about
xcowsay -t 0 "Coffee Break!"
and run it in a cron job every hour.– stumblebee
Mar 5 '18 at 21:22
1
Relevant: askubuntu.com/questions/370821/break-reminder-for-ubuntu or askubuntu.com/questions/696620/…
– Byte Commander
Mar 5 '18 at 21:29
@stumblebee will xwindows programs run from cron, and display on screen?
– RonJohn
Mar 5 '18 at 21:34
1
@RonJohn Yeppers!
0 * * * * env DISPLAY=:0 /usr/games/xcowsay -t 0 "Coffee Break!"
– stumblebee
Mar 5 '18 at 22:23