Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-09-07 17:06:43

badweatherfriend
Member
From: italy
Registered: 2025-09-07
Posts: 2
LinuxUnknown

How can i make windows make a sound when dragged?

Hi!  I'm sorry if this is a weird thing to asked or maybe I'm not doing it properly; i just registered today to ask this question so I'm very much a newbie and I've never even really posted in any forum before but
I wanted to know if there was any way to make windows, in Xfwm, being dragged make a sound under Linux mint. i know through the GUI menus there's no way to make that happen.
I've tried devilspie which worked for when i wanted opening windows to make a sound but I'm not sure there's a way to make them make a sound when being dragged in there.

my sound is short so it could play repeatedly every n pixels the window is moved?
again, sorry for the maybe unusual question, any help is appreciated!! smile

Offline

#2 2025-09-07 19:24:22

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

Re: How can i make windows make a sound when dragged?

Hello and welcome.

Short answer is no. Neither xfwm4 nor libcanberra (the library that generates sounds) support this. Neither does devilspie as it doesn't really monitor events in this fashion.

Long answer is, it might be possible to write C/python program using the X11 libraries to set up a libX11 listener program that would output move/resize events and then react to those.


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-09-07 20:27:55

badweatherfriend
Member
From: italy
Registered: 2025-09-07
Posts: 2
LinuxUnknown

Re: How can i make windows make a sound when dragged?

Thank you so much for answering smile ! i might be able to do that... but does Xfwm move windows with the mouse or does it just move them after the mouse is released (as in are they actually moving under the mouse when they are being moved or are they only rendered after the mouse isunclicked and then they actually appear where the mouse stops clicking)?

i had seen a couple of people trying to do something similar here
https://stackoverflow.com/questions/680 … dow-events
but im not sure what wm they were using as it was never mentioned.

PS. i have no clue how to mark something as solved, sorry  sad ...

Last edited by badweatherfriend (2025-09-07 20:30:07)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 533.65 KiB (Peak: 534.93 KiB) ]