Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 2201  / 2 Years ago, thu, january 20, 2022, 3:39:27

I use Workrave for RSI prevention and rest breaks.

  • Sometimes I need to put it in Quiet or Suspended mode, for example when giving a presentation. However, it remembers this setting the next time I log in, and I might forget to put it back.



    How can I make Workrave always start in Normal mode?



  • [*] It starts up every time I log in, but I can't remember/find how I did this.


    More From » autostart

     Answers
    2

    Workrave does not have this functionality built-in. Instead, you will have to create a trigger to achieve this. You can do this by adding the following command to Startup Applications:



    dbus-send --type=method_call --dest=org.workrave.Workrave /org/workrave/Workrave/Core org.workrave.CoreInterface.SetOperationMode string:'normal'


    Regarding login behaviour, Workrave always starts when you log in, there is no option for it to do otherwise. You could achieve the effect of it not starting by setting it to Suspended on startup:



    dbus-send --type=method_call --dest=org.workrave.Workrave /org/workrave/Workrave/Core org.workrave.CoreInterface.SetOperationMode string:'suspended'


    (Note I am using Cuttlefish (see also Launchpad project) to make these calls rather than Startup Applications, but the results should be the same.)






    There are existing requests to implement this functionality:








    Alternatives



    In theory you can also use dconf to set these values as follows (0 - Normal, 1 - Suspended, 2 - Quiet):



    dconf write /org/workrave/general/operation-mode 0


    However, there is a bug preventing this from working in Workrave 1.10.2.0. This has been fixed for the next release.


    [#28190] Thursday, January 20, 2022, 2 Years  [reply] [flag answer]
    Only authorized users can answer the question. Please sign in first, or register a free account.
    rhaeams

    Total Points: 115
    Total Questions: 111
    Total Answers: 103

    Location: Burundi
    Member since Wed, Nov 25, 2020
    3 Years ago
    ;