Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Linux
  3. SWAY desktop

SWAY desktop

Scheduled Pinned Locked Moved Linux
linux
8 Posts 5 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • marathon01@lemmy.mlM This user is from outside of this forum
    marathon01@lemmy.mlM This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1

    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!

    ? A hallettj@leminal.spaceH marathon01@lemmy.mlM 4 Replies Last reply
    0
    • System shared this topic on
    • marathon01@lemmy.mlM [email protected]

      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!

      ? Offline
      ? Offline
      Guest
      wrote on last edited by
      #2

      Maybe try wib here and use a rule in your Sway config to toggle it ?

      1 Reply Last reply
      0
      • marathon01@lemmy.mlM [email protected]

        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!

        A This user is from outside of this forum
        A This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

        No need for external programs:

        for_window [class="^.*"] inhibit_idle fullscreen
        for_window [app_id="^.*"] inhibit_idle fullscreen 
        
        static_rocket@lemmy.worldS 1 Reply Last reply
        0
        • marathon01@lemmy.mlM [email protected]

          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!

          hallettj@leminal.spaceH This user is from outside of this forum
          hallettj@leminal.spaceH This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          Are you using swayidle? It's supposed to automatically keep the screen on when there is full-screen video playing. It's the same in Gnome: you generally don't need caffeine if a full-screen video is going.

          How are you playing videos? Maybe the player doesn't correctly implement the idle inhibit protocol. Or if you're using sway bindings to make the window fullscreen instead of using the app's own fullscreen mode then maybe the player doesn't know it's fullscreen, and doesn't set up the idle inhibit.

          If you do want manual idle inhibit control, if you use Waybar it has an idle inhibitor module that mimics caffeine. If you don't use Waybar there is a little Python script you can run. Kill it when you want to stop inhibiting idle.

          marathon01@lemmy.mlM 1 Reply Last reply
          0
          • marathon01@lemmy.mlM [email protected]

            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!

            marathon01@lemmy.mlM This user is from outside of this forum
            marathon01@lemmy.mlM This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            Thank-you, works perfectly!

            1 Reply Last reply
            0
            • hallettj@leminal.spaceH [email protected]

              Are you using swayidle? It's supposed to automatically keep the screen on when there is full-screen video playing. It's the same in Gnome: you generally don't need caffeine if a full-screen video is going.

              How are you playing videos? Maybe the player doesn't correctly implement the idle inhibit protocol. Or if you're using sway bindings to make the window fullscreen instead of using the app's own fullscreen mode then maybe the player doesn't know it's fullscreen, and doesn't set up the idle inhibit.

              If you do want manual idle inhibit control, if you use Waybar it has an idle inhibitor module that mimics caffeine. If you don't use Waybar there is a little Python script you can run. Kill it when you want to stop inhibiting idle.

              marathon01@lemmy.mlM This user is from outside of this forum
              marathon01@lemmy.mlM This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              The 2 line stanza works from a14o. However, the site you linked has lots of useful information that I'll use to set up my waybar icons!

              1 Reply Last reply
              0
              • A [email protected]

                No need for external programs:

                for_window [class="^.*"] inhibit_idle fullscreen
                for_window [app_id="^.*"] inhibit_idle fullscreen 
                
                static_rocket@lemmy.worldS This user is from outside of this forum
                static_rocket@lemmy.worldS This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #7

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

                for_window [all] inhibit_idle full screen
                
                A 1 Reply Last reply
                0
                • static_rocket@lemmy.worldS [email protected]

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

                  for_window [all] inhibit_idle full screen
                  
                  A This user is from outside of this forum
                  A This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #8

                  Nice, I didn't know about the all selector

                  1 Reply Last reply
                  0
                  • System shared this topic on
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups