You are not logged in.
Hi,
Is there a command to directly open the "identify running process"-function in the xfce4-taskmanager instead of opening the taskmanager first and clicking the cross icon? I want to be able to run this command in the terminal, so that I can immediately select a window of a running process and ideally get a text output with the name of the process.
Last edited by xfce_user_1234 (2023-12-10 11:11:57)
Offline
Try using xdotool and either ps or top to accomplish this:
ps -fp $(xdotool selectwindow getwindowpid)
...or:
top -p $(xdotool selectwindow getwindowpid)
If you want to create a keyboard shortcut to run this, you'll need to display it in a terminal window, so use:
xfce4-terminal -T 'Inspect Process' -x COMMAND_FROM_ABOVE
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
This is what I was looking for, thanks!
By the way, to make the command run as a shortcut, I had to encapsulate it in
sh -c "COMMAND"
And instead of the terminal I used xmessage to display the output, so my final shortcut command is as follows
sh -c "ps -fp $(xdotool selectwindow getwindowpid) | xmessage -file -"
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 552.05 KiB (Peak: 618.05 KiB) ]