How can i lock mac every x minutes?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
Is there a simple way / app to say for example: every 30 minutes lock computer for 5 minutes (and don't let any easy way to cancel while this 5 minutes break is happening)?
I know you can set a daily use time, and i know you can schedule locking time. but those are not what i am looking for.
time blocking lock
add a comment |
Is there a simple way / app to say for example: every 30 minutes lock computer for 5 minutes (and don't let any easy way to cancel while this 5 minutes break is happening)?
I know you can set a daily use time, and i know you can schedule locking time. but those are not what i am looking for.
time blocking lock
add a comment |
Is there a simple way / app to say for example: every 30 minutes lock computer for 5 minutes (and don't let any easy way to cancel while this 5 minutes break is happening)?
I know you can set a daily use time, and i know you can schedule locking time. but those are not what i am looking for.
time blocking lock
Is there a simple way / app to say for example: every 30 minutes lock computer for 5 minutes (and don't let any easy way to cancel while this 5 minutes break is happening)?
I know you can set a daily use time, and i know you can schedule locking time. but those are not what i am looking for.
time blocking lock
time blocking lock
edited Feb 7 at 10:41
mondi
asked Feb 7 at 8:38
mondimondi
11
11
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
This ought to be in a comment. No enough reps
Please clarify:
a. You want to enforce locking after 30 minutes of Desktop session?
Answered Here https://stackoverflow.com/a/6445525. Automator.app is the tool of choice. use the command:
sudo shutdown -s +30
b. Gently remind the user to lock screen after 30 minutes and take a break?
for b. these are the possibilities: Setup a reminder with a Timer app.
Use Key chain access/ Hot Corners/ or Add an icon to the dock.
I edited my question because i forgot to mention i need it to stay lock for 5 minutes or so, but for your question it's more similar to the option a you mentioned.
– mondi
Feb 7 at 10:42
Stay locked for 5 minutes and then resume again? Automatically unlocking a locked session beats the purpose it was designed for - security, that is.
– Kavera_user714152
Feb 7 at 10:45
Didn't really understand you. first of all the purpost is not secuirity at all. second, it can be resumed to the login screen state so you need the password.
– mondi
Feb 7 at 10:52
add a comment |
One way to do this is to set a
cron
job that activates the ScreenSaver App which ends up
locking your screen.
Reproducing the relevant snippet from this repo on Github
#!/bin/bash
# Written by Amar Sharma <amarsharma.hacker@gmail.com>
lock_screen() {
sudo open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app || true
}
A friend of mine made this script that come night time will change your password and lock your mac every X
minutes and email you the password to make it cumbersome to continue using your mac every day.
Link to Source Code on Github
Thanks, i was looking for a more simple solution (no coding :), but any way how can i use this code to repeat this every 30 minutes?
– mondi
Feb 7 at 10:36
Also i edited my question because i forgot to mention i need it to stay lock for 5 minutes or so.
– mondi
Feb 7 at 10:41
I see, what if, this same script had the following behavior: 1. Lock and change password to random string every 30 minutes 2. Change password back to old password after 5 minutes
– Sinstein
Feb 7 at 15:14
That could be fine... i guess. how would you do it?
– mondi
Feb 7 at 18:36
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1403027%2fhow-can-i-lock-mac-every-x-minutes%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
This ought to be in a comment. No enough reps
Please clarify:
a. You want to enforce locking after 30 minutes of Desktop session?
Answered Here https://stackoverflow.com/a/6445525. Automator.app is the tool of choice. use the command:
sudo shutdown -s +30
b. Gently remind the user to lock screen after 30 minutes and take a break?
for b. these are the possibilities: Setup a reminder with a Timer app.
Use Key chain access/ Hot Corners/ or Add an icon to the dock.
I edited my question because i forgot to mention i need it to stay lock for 5 minutes or so, but for your question it's more similar to the option a you mentioned.
– mondi
Feb 7 at 10:42
Stay locked for 5 minutes and then resume again? Automatically unlocking a locked session beats the purpose it was designed for - security, that is.
– Kavera_user714152
Feb 7 at 10:45
Didn't really understand you. first of all the purpost is not secuirity at all. second, it can be resumed to the login screen state so you need the password.
– mondi
Feb 7 at 10:52
add a comment |
This ought to be in a comment. No enough reps
Please clarify:
a. You want to enforce locking after 30 minutes of Desktop session?
Answered Here https://stackoverflow.com/a/6445525. Automator.app is the tool of choice. use the command:
sudo shutdown -s +30
b. Gently remind the user to lock screen after 30 minutes and take a break?
for b. these are the possibilities: Setup a reminder with a Timer app.
Use Key chain access/ Hot Corners/ or Add an icon to the dock.
I edited my question because i forgot to mention i need it to stay lock for 5 minutes or so, but for your question it's more similar to the option a you mentioned.
– mondi
Feb 7 at 10:42
Stay locked for 5 minutes and then resume again? Automatically unlocking a locked session beats the purpose it was designed for - security, that is.
– Kavera_user714152
Feb 7 at 10:45
Didn't really understand you. first of all the purpost is not secuirity at all. second, it can be resumed to the login screen state so you need the password.
– mondi
Feb 7 at 10:52
add a comment |
This ought to be in a comment. No enough reps
Please clarify:
a. You want to enforce locking after 30 minutes of Desktop session?
Answered Here https://stackoverflow.com/a/6445525. Automator.app is the tool of choice. use the command:
sudo shutdown -s +30
b. Gently remind the user to lock screen after 30 minutes and take a break?
for b. these are the possibilities: Setup a reminder with a Timer app.
Use Key chain access/ Hot Corners/ or Add an icon to the dock.
This ought to be in a comment. No enough reps
Please clarify:
a. You want to enforce locking after 30 minutes of Desktop session?
Answered Here https://stackoverflow.com/a/6445525. Automator.app is the tool of choice. use the command:
sudo shutdown -s +30
b. Gently remind the user to lock screen after 30 minutes and take a break?
for b. these are the possibilities: Setup a reminder with a Timer app.
Use Key chain access/ Hot Corners/ or Add an icon to the dock.
answered Feb 7 at 9:15
Kavera_user714152Kavera_user714152
112
112
I edited my question because i forgot to mention i need it to stay lock for 5 minutes or so, but for your question it's more similar to the option a you mentioned.
– mondi
Feb 7 at 10:42
Stay locked for 5 minutes and then resume again? Automatically unlocking a locked session beats the purpose it was designed for - security, that is.
– Kavera_user714152
Feb 7 at 10:45
Didn't really understand you. first of all the purpost is not secuirity at all. second, it can be resumed to the login screen state so you need the password.
– mondi
Feb 7 at 10:52
add a comment |
I edited my question because i forgot to mention i need it to stay lock for 5 minutes or so, but for your question it's more similar to the option a you mentioned.
– mondi
Feb 7 at 10:42
Stay locked for 5 minutes and then resume again? Automatically unlocking a locked session beats the purpose it was designed for - security, that is.
– Kavera_user714152
Feb 7 at 10:45
Didn't really understand you. first of all the purpost is not secuirity at all. second, it can be resumed to the login screen state so you need the password.
– mondi
Feb 7 at 10:52
I edited my question because i forgot to mention i need it to stay lock for 5 minutes or so, but for your question it's more similar to the option a you mentioned.
– mondi
Feb 7 at 10:42
I edited my question because i forgot to mention i need it to stay lock for 5 minutes or so, but for your question it's more similar to the option a you mentioned.
– mondi
Feb 7 at 10:42
Stay locked for 5 minutes and then resume again? Automatically unlocking a locked session beats the purpose it was designed for - security, that is.
– Kavera_user714152
Feb 7 at 10:45
Stay locked for 5 minutes and then resume again? Automatically unlocking a locked session beats the purpose it was designed for - security, that is.
– Kavera_user714152
Feb 7 at 10:45
Didn't really understand you. first of all the purpost is not secuirity at all. second, it can be resumed to the login screen state so you need the password.
– mondi
Feb 7 at 10:52
Didn't really understand you. first of all the purpost is not secuirity at all. second, it can be resumed to the login screen state so you need the password.
– mondi
Feb 7 at 10:52
add a comment |
One way to do this is to set a
cron
job that activates the ScreenSaver App which ends up
locking your screen.
Reproducing the relevant snippet from this repo on Github
#!/bin/bash
# Written by Amar Sharma <amarsharma.hacker@gmail.com>
lock_screen() {
sudo open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app || true
}
A friend of mine made this script that come night time will change your password and lock your mac every X
minutes and email you the password to make it cumbersome to continue using your mac every day.
Link to Source Code on Github
Thanks, i was looking for a more simple solution (no coding :), but any way how can i use this code to repeat this every 30 minutes?
– mondi
Feb 7 at 10:36
Also i edited my question because i forgot to mention i need it to stay lock for 5 minutes or so.
– mondi
Feb 7 at 10:41
I see, what if, this same script had the following behavior: 1. Lock and change password to random string every 30 minutes 2. Change password back to old password after 5 minutes
– Sinstein
Feb 7 at 15:14
That could be fine... i guess. how would you do it?
– mondi
Feb 7 at 18:36
add a comment |
One way to do this is to set a
cron
job that activates the ScreenSaver App which ends up
locking your screen.
Reproducing the relevant snippet from this repo on Github
#!/bin/bash
# Written by Amar Sharma <amarsharma.hacker@gmail.com>
lock_screen() {
sudo open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app || true
}
A friend of mine made this script that come night time will change your password and lock your mac every X
minutes and email you the password to make it cumbersome to continue using your mac every day.
Link to Source Code on Github
Thanks, i was looking for a more simple solution (no coding :), but any way how can i use this code to repeat this every 30 minutes?
– mondi
Feb 7 at 10:36
Also i edited my question because i forgot to mention i need it to stay lock for 5 minutes or so.
– mondi
Feb 7 at 10:41
I see, what if, this same script had the following behavior: 1. Lock and change password to random string every 30 minutes 2. Change password back to old password after 5 minutes
– Sinstein
Feb 7 at 15:14
That could be fine... i guess. how would you do it?
– mondi
Feb 7 at 18:36
add a comment |
One way to do this is to set a
cron
job that activates the ScreenSaver App which ends up
locking your screen.
Reproducing the relevant snippet from this repo on Github
#!/bin/bash
# Written by Amar Sharma <amarsharma.hacker@gmail.com>
lock_screen() {
sudo open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app || true
}
A friend of mine made this script that come night time will change your password and lock your mac every X
minutes and email you the password to make it cumbersome to continue using your mac every day.
Link to Source Code on Github
One way to do this is to set a
cron
job that activates the ScreenSaver App which ends up
locking your screen.
Reproducing the relevant snippet from this repo on Github
#!/bin/bash
# Written by Amar Sharma <amarsharma.hacker@gmail.com>
lock_screen() {
sudo open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app || true
}
A friend of mine made this script that come night time will change your password and lock your mac every X
minutes and email you the password to make it cumbersome to continue using your mac every day.
Link to Source Code on Github
answered Feb 7 at 10:01
SinsteinSinstein
1207
1207
Thanks, i was looking for a more simple solution (no coding :), but any way how can i use this code to repeat this every 30 minutes?
– mondi
Feb 7 at 10:36
Also i edited my question because i forgot to mention i need it to stay lock for 5 minutes or so.
– mondi
Feb 7 at 10:41
I see, what if, this same script had the following behavior: 1. Lock and change password to random string every 30 minutes 2. Change password back to old password after 5 minutes
– Sinstein
Feb 7 at 15:14
That could be fine... i guess. how would you do it?
– mondi
Feb 7 at 18:36
add a comment |
Thanks, i was looking for a more simple solution (no coding :), but any way how can i use this code to repeat this every 30 minutes?
– mondi
Feb 7 at 10:36
Also i edited my question because i forgot to mention i need it to stay lock for 5 minutes or so.
– mondi
Feb 7 at 10:41
I see, what if, this same script had the following behavior: 1. Lock and change password to random string every 30 minutes 2. Change password back to old password after 5 minutes
– Sinstein
Feb 7 at 15:14
That could be fine... i guess. how would you do it?
– mondi
Feb 7 at 18:36
Thanks, i was looking for a more simple solution (no coding :), but any way how can i use this code to repeat this every 30 minutes?
– mondi
Feb 7 at 10:36
Thanks, i was looking for a more simple solution (no coding :), but any way how can i use this code to repeat this every 30 minutes?
– mondi
Feb 7 at 10:36
Also i edited my question because i forgot to mention i need it to stay lock for 5 minutes or so.
– mondi
Feb 7 at 10:41
Also i edited my question because i forgot to mention i need it to stay lock for 5 minutes or so.
– mondi
Feb 7 at 10:41
I see, what if, this same script had the following behavior: 1. Lock and change password to random string every 30 minutes 2. Change password back to old password after 5 minutes
– Sinstein
Feb 7 at 15:14
I see, what if, this same script had the following behavior: 1. Lock and change password to random string every 30 minutes 2. Change password back to old password after 5 minutes
– Sinstein
Feb 7 at 15:14
That could be fine... i guess. how would you do it?
– mondi
Feb 7 at 18:36
That could be fine... i guess. how would you do it?
– mondi
Feb 7 at 18:36
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1403027%2fhow-can-i-lock-mac-every-x-minutes%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