OK Have Sway running just fine and am using it as my daily driver. What I’m missing is some way to prevent the display from sleeping when playing full-screen content. I adjusted the time-out in the sway config; however, that’s not the way to prevent the display from sleeping with full-screen active. Any ideas? With Gnome, one uses caffeine, but extensions don’t work with Sway. Thanks!

  • a14o@feddit.org
    link
    fedilink
    arrow-up
    21
    ·
    1 day ago

    No need for external programs:

    for_window [class="^.*"] inhibit_idle fullscreen
    for_window [app_id="^.*"] inhibit_idle fullscreen 
    
    • Static_Rocket@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      14 hours ago

      The inhibit_idle specifier is cool, thanks for the pointer. This two liner can be replaced with:

      for_window [all] inhibit_idle fullscreen