This is just a collection of different tools or functions that I've used accross my scripts and that can be applied to a lot of different situations.
A function that, using jamfhelper, blocks the screen if the a minimum charge is not met and AC is not connected, and stays like that until power is connected.
A script that gets the current keyboard layout from the user and sets it at the top of the plist that handles the keyboard layouts on the FileVault screen.