Giter VIP home page Giter VIP logo

dockset's Introduction

Dockset

It's like outset, but for your Dock. This wouldn't be possible without

Why?

Sometimes you want to add or remove an item from a user's dock when you're running as root. Maybe you're removing an unused piece of software with Munki or you are adding Chrome to a user's Dock during DEP.

What?

Dockset will add or remove an item to a user's dock either once or all the time.

Using it

Setup

This script assumes you have dockutil in /usr/local/bin. If you have it somewhere else, add the following to the LaunchAgent:

<string>--dockutil</string>
<string>/opt/bin/dockutil</string>

Building

Build this with Munkipkg.

Directories

Dockset uses four directories - add-once, remove-once, add-always, remove-always - all of these live in /Library/Application Support/dockset. You should drop a plist in these directories based on how often you want these managed. Important: the current user must be able to remove items from *-once, so it is easiest to set these to 777.

The plist - adding items

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>path</key>
    <string>/Applications/Google Chrome.pp</string>
    <key>replacing</key>
    <string>Safari</string>
    <key>position</key>
    <string>beginning</string>
    <key>name</key>
    <string>Google Chrome</string>
</dict>
</plist>

The plist - removing items

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>name</key>
    <string>Safari</string>
</dict>
</plist>

dockset's People

Contributors

grahamgilbert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.