I would like to share an article in 𝐅𝐫𝐞𝐞𝐁𝐒𝐃 𝐃𝐞𝐬𝐤𝐭𝐨𝐩 series about Key Components of self made desktop environment on FreeBSD.
𝗙𝗿𝗲𝗲𝗕𝗦𝗗 𝗗𝗲𝘀𝗸𝘁𝗼𝗽 - 𝗣𝗮𝗿𝘁 𝟭𝟬 - 𝗞𝗲𝘆 𝗖𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁𝘀 - 𝗟𝗼𝗰𝗸𝗶𝗻𝗴 𝗦𝗼𝗹𝘂𝘁𝗶𝗼𝗻
https://vermaden.wordpress.com/2018/06/23/freebsd-desktop-part-10-key-components-locking-solution/