The Ottoman Sultans and Qadhis used to wear a headdress called a “Kavuk“.
It was actually their burial shroud (kafan) worn with the intention of a turban. When they died, the turban was untied and their body was shrouded with it and buried.
They did this to keep death in mind at all times and to protect them from falling in love with worldly pleasures.
Whenever they would pass a law or fatwa, the turban would make them remember death so they would never err from truth and justice.