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.
I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc
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.008 seconds, 8 queries executed - Memory usage: 537.26 KiB (Peak: 538.1 KiB) ]