Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-08-22 23:23:06

Talkabout
Member
Registered: 2025-08-22
Posts: 2
LinuxChrome 139.0

Any way to listen to events?

Hi guys,

I am using XFCE4 on my QubesOS laptop and would like to add some logic when window focus changes. Is there a way to add a listener (bash, python...) so that I get notified when the focus changes to a different window?

Thanks!

Offline

#2 2025-08-23 00:47:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,123
LinuxFirefox 142.0

Re: Any way to listen to events?


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2025-08-23 09:21:01

Talkabout
Member
Registered: 2025-08-22
Posts: 2
LinuxChrome 139.0

Re: Any way to listen to events?

@ToZ thank you very much! Looks interesting and should cover my use case. Will report back if it works.

Added later 8 h 48 min 13 s:
@ToZ The solution in your first link works perfectly fine, thank you very much again!

Offline

#4 Today 09:38:51

Brenton
Banned
Registered: Today
Posts: 1
Windows 10Chrome 135.0

Re: Any way to listen to events?

Не пробовал даже, очень интересно.

Offline

Registered users online in this topic: 0, guests: 0

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 529.16 KiB (Peak: 532.24 KiB) ]