You are not logged in.

#1 2020-11-01 05:50:13

kgavionics
Member
Registered: 2020-04-02
Posts: 31

[Solved]Inhibit xscreensaver like xfce does?

Hello
I'm on bspwm and I want to inhibit the xscreensaver when a video is playing in chromium. I know that Xfce when a video a playing in normal or full screen, if I click on the Power manager Icon in the system tray, I have a message that chromium is inhibiting the screensaver!
I'm wondering which I package I have to install to get a feature like this in bspwm.

Thank you in advance

Last edited by kgavionics (2020-11-02 01:28:30)

Offline

#2 2020-11-01 05:53:20

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,680

Re: [Solved]Inhibit xscreensaver like xfce does?

Does

xset s off

do what you want?

Offline

#3 2020-11-01 06:18:51

kgavionics
Member
Registered: 2020-04-02
Posts: 31

Re: [Solved]Inhibit xscreensaver like xfce does?

skunktrader wrote:

Does

xset s off

do what you want?

Thank you
Yes, it does, but I'm looking for an automatic way to do it like in xfce!

Offline

#4 2020-11-01 07:42:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,652

Re: [Solved]Inhibit xscreensaver like xfce does?

This has nothing to do w/ xfce or bspwm and you cannot "install a package" to make it work.

Chromium inhabits the screensaver through a standardized dbus interface, https://people.freedesktop.org/~hadess/ … /re01.html
XScreenSaver simply doesn't implement any dbus interfaces so chromium cannot inhibit it this way.

There's a python based shim, but that only allows to trigger a lock via dbus: https://aur.archlinux.org/packages/xscr … creenlock/
On a superficial check, none of the standalone screensavers/lockers seems to implement that, only the DE integrated ones, so you've have to eg. use xfce4-screensaver

Offline

#5 2020-11-01 14:43:35

kgavionics
Member
Registered: 2020-04-02
Posts: 31

Re: [Solved]Inhibit xscreensaver like xfce does?

seth wrote:

This has nothing to do w/ xfce or bspwm and you cannot "install a package" to make it work.

Chromium inhabits the screensaver through a standardized dbus interface, https://people.freedesktop.org/~hadess/ … /re01.html
XScreenSaver simply doesn't implement any dbus interfaces so chromium cannot inhibit it this way.

There's a python based shim, but that only allows to trigger a lock via dbus: https://aur.archlinux.org/packages/xscr … creenlock/
On a superficial check, none of the standalone screensavers/lockers seems to implement that, only the DE integrated ones, so you've have to eg. use xfce4-screensaver

Thank you, Seth, for the explanation!!!

Last edited by kgavionics (2020-11-01 14:43:52)

Offline

#6 2020-11-01 15:50:57

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: [Solved]Inhibit xscreensaver like xfce does?


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#7 2020-11-01 18:41:26

kgavionics
Member
Registered: 2020-04-02
Posts: 31

Re: [Solved]Inhibit xscreensaver like xfce does?

Thank you for the link, I'm gonna try it out!
Update:
The script is working good!

Last edited by kgavionics (2020-11-02 01:29:06)

Offline

Board footer

Powered by FluxBB