You are not logged in.
Pages: 1
Hi,
I am a newby of xfce.
I wonder if is possible send message in the same way MWM does by means of f.send_msg.
Thanks in advance for the help.
Offline
I don't know how Motif works so stating what your looking to achieve would be helpful rather than digging into the whole MWM environment.
But it's all right, when you're all in pain and you feel the rain come down
It's alright, when you find your way, then you see it disappear
It's alright....
Chris Cornell
Offline
On the focus of a window i want to send a custom message or signal.
Offline
Something like this?
#!/bin/bash
PROCESS="mousepad"
COUNT=0
while true
do
if [ "$(ps -e | grep $(xdotool getwindowpid $(xdotool getwindowfocus)) | grep -v grep | awk '{print $4}')" == "$PROCESS" ];
then
COUNT=$((COUNT+1))
echo $COUNT
fi
sleep 1
done...currently coded to count the approximate seconds that a particular process is in focus. You can change this to do anything you want.
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
Pages: 1
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 524.23 KiB (Peak: 525.2 KiB) ]