Changing the lock screen in xscreensaver to i3lock












2














I am running Arch Linux + Fluxbox. I have installed i3lock but the screen won't lock automatically as the program isn't designed to do that. Now, I want to change the default lock screen in xscreensaver package to i3lock. I have no idea about how to do that. Any other alternative method that automatically locks the screen after a period of inactivity using i3lock would be equally accepted.










share|improve this question





























    2














    I am running Arch Linux + Fluxbox. I have installed i3lock but the screen won't lock automatically as the program isn't designed to do that. Now, I want to change the default lock screen in xscreensaver package to i3lock. I have no idea about how to do that. Any other alternative method that automatically locks the screen after a period of inactivity using i3lock would be equally accepted.










    share|improve this question



























      2












      2








      2







      I am running Arch Linux + Fluxbox. I have installed i3lock but the screen won't lock automatically as the program isn't designed to do that. Now, I want to change the default lock screen in xscreensaver package to i3lock. I have no idea about how to do that. Any other alternative method that automatically locks the screen after a period of inactivity using i3lock would be equally accepted.










      share|improve this question















      I am running Arch Linux + Fluxbox. I have installed i3lock but the screen won't lock automatically as the program isn't designed to do that. Now, I want to change the default lock screen in xscreensaver package to i3lock. I have no idea about how to do that. Any other alternative method that automatically locks the screen after a period of inactivity using i3lock would be equally accepted.







      arch-linux i3 fluxbox






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday









      Rui F Ribeiro

      38.8k1479128




      38.8k1479128










      asked Jan 10 '17 at 17:01









      Ceda EI

      20517




      20517






















          1 Answer
          1






          active

          oldest

          votes


















          6














          I would suggest using xautolock. It is specifically designed to start arbitrary programs in idle X sessions. (It is also mentioned in the i3lock manpage)



          In order to lock your screen with i3lock after 10 minutes of idle time, you just have to run:



          xautolock -locker i3lock


          If you want to pass some arguments to i3lock and change the timeout to 5 minutes you can do so like this:



          xautolock -time 5 -locker 'i3lock -e -c 007f7f'


          You can also use the xautolock command to control a running xautolock session, for example if you started it from your ~/.i3/config.





          • Immediately lock screen:



            xautolock -locknow



          • Temporarily disable locking



            xautolock -disable


          • (Re-)enable locking:
            xautolock -enable



          • Toggle between enabled and disabled:



            xautolock -toggle



          For more information have a look at the xautolock manpage.






          share|improve this answer





















          • Very good use of examples in the answer.
            – David C. Rankin
            Feb 10 '17 at 1:40











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f336363%2fchanging-the-lock-screen-in-xscreensaver-to-i3lock%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          6














          I would suggest using xautolock. It is specifically designed to start arbitrary programs in idle X sessions. (It is also mentioned in the i3lock manpage)



          In order to lock your screen with i3lock after 10 minutes of idle time, you just have to run:



          xautolock -locker i3lock


          If you want to pass some arguments to i3lock and change the timeout to 5 minutes you can do so like this:



          xautolock -time 5 -locker 'i3lock -e -c 007f7f'


          You can also use the xautolock command to control a running xautolock session, for example if you started it from your ~/.i3/config.





          • Immediately lock screen:



            xautolock -locknow



          • Temporarily disable locking



            xautolock -disable


          • (Re-)enable locking:
            xautolock -enable



          • Toggle between enabled and disabled:



            xautolock -toggle



          For more information have a look at the xautolock manpage.






          share|improve this answer





















          • Very good use of examples in the answer.
            – David C. Rankin
            Feb 10 '17 at 1:40
















          6














          I would suggest using xautolock. It is specifically designed to start arbitrary programs in idle X sessions. (It is also mentioned in the i3lock manpage)



          In order to lock your screen with i3lock after 10 minutes of idle time, you just have to run:



          xautolock -locker i3lock


          If you want to pass some arguments to i3lock and change the timeout to 5 minutes you can do so like this:



          xautolock -time 5 -locker 'i3lock -e -c 007f7f'


          You can also use the xautolock command to control a running xautolock session, for example if you started it from your ~/.i3/config.





          • Immediately lock screen:



            xautolock -locknow



          • Temporarily disable locking



            xautolock -disable


          • (Re-)enable locking:
            xautolock -enable



          • Toggle between enabled and disabled:



            xautolock -toggle



          For more information have a look at the xautolock manpage.






          share|improve this answer





















          • Very good use of examples in the answer.
            – David C. Rankin
            Feb 10 '17 at 1:40














          6












          6








          6






          I would suggest using xautolock. It is specifically designed to start arbitrary programs in idle X sessions. (It is also mentioned in the i3lock manpage)



          In order to lock your screen with i3lock after 10 minutes of idle time, you just have to run:



          xautolock -locker i3lock


          If you want to pass some arguments to i3lock and change the timeout to 5 minutes you can do so like this:



          xautolock -time 5 -locker 'i3lock -e -c 007f7f'


          You can also use the xautolock command to control a running xautolock session, for example if you started it from your ~/.i3/config.





          • Immediately lock screen:



            xautolock -locknow



          • Temporarily disable locking



            xautolock -disable


          • (Re-)enable locking:
            xautolock -enable



          • Toggle between enabled and disabled:



            xautolock -toggle



          For more information have a look at the xautolock manpage.






          share|improve this answer












          I would suggest using xautolock. It is specifically designed to start arbitrary programs in idle X sessions. (It is also mentioned in the i3lock manpage)



          In order to lock your screen with i3lock after 10 minutes of idle time, you just have to run:



          xautolock -locker i3lock


          If you want to pass some arguments to i3lock and change the timeout to 5 minutes you can do so like this:



          xautolock -time 5 -locker 'i3lock -e -c 007f7f'


          You can also use the xautolock command to control a running xautolock session, for example if you started it from your ~/.i3/config.





          • Immediately lock screen:



            xautolock -locknow



          • Temporarily disable locking



            xautolock -disable


          • (Re-)enable locking:
            xautolock -enable



          • Toggle between enabled and disabled:



            xautolock -toggle



          For more information have a look at the xautolock manpage.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 12 '17 at 16:08









          Adaephon

          2,63311020




          2,63311020












          • Very good use of examples in the answer.
            – David C. Rankin
            Feb 10 '17 at 1:40


















          • Very good use of examples in the answer.
            – David C. Rankin
            Feb 10 '17 at 1:40
















          Very good use of examples in the answer.
          – David C. Rankin
          Feb 10 '17 at 1:40




          Very good use of examples in the answer.
          – David C. Rankin
          Feb 10 '17 at 1:40


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f336363%2fchanging-the-lock-screen-in-xscreensaver-to-i3lock%23new-answer', 'question_page');
          }
          );

          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







          Popular posts from this blog

          サソリ

          広島県道265号伴広島線

          Accessing regular linux commands in Huawei's Dopra Linux