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.
Siduction
Debian Sid
Xfce 4.18
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.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Pages: 1
[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 523.67 KiB (Peak: 528.98 KiB) ]