You are not logged in.
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!!
Offline
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
Thank you so much for answering ! 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 ...
Last edited by badweatherfriend (2025-09-07 20:30:07)
Offline
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 533.65 KiB (Peak: 534.93 KiB) ]