For the life of me I'm trying to find a way, to system-wide REMOVE the lock 'icon' from the system tray (ie under the top left dropdown)... I've tried everything under the sun to either: stop it from doing anything, find a way to re-map what it actually DOES (ie change the command it runs - this would be the best solution). and also to simply remove it from the UI
I have tried all the various ways I have found from dconf settings, to editing the polkit-1/actions/org.freedesktop.login1.policy file.
My aim is to stop users from locking the desktop via THAT method... reason being it screws up x11vnc (when remoted in) when clicking it. I have an implementation of i3lock I want to set as the 'default' way of locking the desktop as that plays nice with said x11vnc.
Is there a way to fully remove it, or change its behaviour to run my i3lock-colour script?
I'm sure I've missed a simple solution, but I feel I've tried everything.
location of Lock icon within system tray
EDIT:
Additional: Something I've noticed that is 'odd' is if I manually run the command gnome-screensaver-command -l to lock immediately, I can happily - via a remote x11vnc - see the lock screen and unlock the machine. likewise if the vnc session is left open but no user input for a long time, I can see the same lock screen (and the same occurs if the vnc session is closed and left). Why does it do something different when pressing the GUI lock button? I'm led to believe locking via the gui button opens a new X display hence why x11vnc which is bound to :0 goes blank. again what command is causing this and can it be changed?
Edit2:
Just in case anyone was wondering... the machines HAVE to use 18.04 due to other driver/software that is only qualified for this version and a move to 20.04 (next qualified version) would require significant updates to other systems out of this scope and is a highly complex job. Kind of frustrating for me as I've seen numerous gnome extensions that are perfect, but incompatible with gnome 3.28.