How can I tell if a user is idle in Wayland?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












On X-Server based systems the utility xprintidle will return the number of milliseconds that the user has been idle.
Does similar functionality exist under Wayland?



I am attempting to write a small program that records application focus throughout the day, as a way to measure how I use my computer, productivity, etc.

I don't want the program to record activity when the machine is idle. Determining how long the user has been idle in X-Server sessions is easy with xprintidle, however this utility appears to be unmaintained, and does not function under Wayland.



The distros appear to be moving toward Wayland, for example the upcoming Ubuntu 17.10 uses Wayland by default, therefore xprintidle is no longer a workable solution.



Is there a mechanism in Wayland for determining if the user is idle, short of something inefficient like constantly polling for keyboard and mouse activity?










share|improve this question

























    up vote
    2
    down vote

    favorite
    1












    On X-Server based systems the utility xprintidle will return the number of milliseconds that the user has been idle.
    Does similar functionality exist under Wayland?



    I am attempting to write a small program that records application focus throughout the day, as a way to measure how I use my computer, productivity, etc.

    I don't want the program to record activity when the machine is idle. Determining how long the user has been idle in X-Server sessions is easy with xprintidle, however this utility appears to be unmaintained, and does not function under Wayland.



    The distros appear to be moving toward Wayland, for example the upcoming Ubuntu 17.10 uses Wayland by default, therefore xprintidle is no longer a workable solution.



    Is there a mechanism in Wayland for determining if the user is idle, short of something inefficient like constantly polling for keyboard and mouse activity?










    share|improve this question























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      On X-Server based systems the utility xprintidle will return the number of milliseconds that the user has been idle.
      Does similar functionality exist under Wayland?



      I am attempting to write a small program that records application focus throughout the day, as a way to measure how I use my computer, productivity, etc.

      I don't want the program to record activity when the machine is idle. Determining how long the user has been idle in X-Server sessions is easy with xprintidle, however this utility appears to be unmaintained, and does not function under Wayland.



      The distros appear to be moving toward Wayland, for example the upcoming Ubuntu 17.10 uses Wayland by default, therefore xprintidle is no longer a workable solution.



      Is there a mechanism in Wayland for determining if the user is idle, short of something inefficient like constantly polling for keyboard and mouse activity?










      share|improve this question













      On X-Server based systems the utility xprintidle will return the number of milliseconds that the user has been idle.
      Does similar functionality exist under Wayland?



      I am attempting to write a small program that records application focus throughout the day, as a way to measure how I use my computer, productivity, etc.

      I don't want the program to record activity when the machine is idle. Determining how long the user has been idle in X-Server sessions is easy with xprintidle, however this utility appears to be unmaintained, and does not function under Wayland.



      The distros appear to be moving toward Wayland, for example the upcoming Ubuntu 17.10 uses Wayland by default, therefore xprintidle is no longer a workable solution.



      Is there a mechanism in Wayland for determining if the user is idle, short of something inefficient like constantly polling for keyboard and mouse activity?







      linux ubuntu x11 wayland






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 9 '17 at 0:44









      GetOperational

      112




      112

























          active

          oldest

          votes











          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f396911%2fhow-can-i-tell-if-a-user-is-idle-in-wayland%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f396911%2fhow-can-i-tell-if-a-user-is-idle-in-wayland%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?