who is usingthe screen

I have two users on system and change between them using
ctrl-alt f7 and ctrl-alt f8.
At any time only one of the users is using the screen.
How can I from a background process see who it is using the screen?

Thanks for a hint,

Moved to Applications.

Please do not ask in Howto/FAQ Forums.

I do not know how that is possible, but I think that the correct term used here is “which user is in the seat”. This to help you searching documents, etc.

Assuming KDE Plasma as the Desktop, I work around this issue by changing to the “Desktop” Layout and dropping a “Desktop” directory folder onto the screen’s Desktop –

  • I then change the title of the Desktop Folder on my screen’s Desktop to include the user name of the session.