Skip to content

Latest commit

 

History

History
79 lines (58 loc) · 2.61 KB

README.md

File metadata and controls

79 lines (58 loc) · 2.61 KB

Label Notch

Label Notch

A static desktop label in a snazzy notch.

Swift 4 MacOS Platform License

Label Notch uses the style of the iPhone X sensor cutout to display simple information on the mac desktop.

Great for displaying machine id's right on the desktop. By default the machines hostname is displayed.

  • Can be customized to any string to display deployed mac's custom identifiers.
  • The content is centered and can be changed based on editable plist values.


Switching to dark mode.

      Features
🌑 Automatically adjusts between dark/light system settings.
💻 Customizable via terminal command.
🎩 Runs as a background launch agent.
🆓 Open Source. Easy to extend for your own implementations.

Installation

  1. Copy the compiled labelnotch application to /usr/local/bin

    sudo cp {the/build/path}/labelnotch /usr/local/bin/labelnotch
  2. Create a Launch Agent for the user. This will start the application upon login.

    mkdir -p ~/Library/LaunchAgents
    cp com.darwinist.labelnotch.plist ~/Library/LaunchAgents/com.darwinist.labelnotch.plist # Copy plist to user's Launch Agents
  3. Launch for the first time

    launchctl load -w ~/Library/LaunchAgents/com.darwinist.labelnotch.plist
  4. Update the text:

    defaults write com.darwinist.labelnotch title "MC00010349"
    
    launchctl unload ~/Library/LaunchAgents/com.darwinist.labelnotch.plist
    launchctl load -w ~/Library/LaunchAgents/com.darwinist.labelnotch.plist

Changing the Label Text

The label text can be interfaced with via the defaults command-line utility.

defaults write com.darwinist.labelnotch title "Machine MC00010349"

After changing the setting via defaults, re-spring the application:

launchctl unload ~/Library/LaunchAgents/com.darwinist.labelnotch.plist

launchctl load -w ~/Library/LaunchAgents/com.darwinist.labelnotch.plist

License

Desktop Machine Identifier is available under the MIT license. See the LICENSE file for more info.