-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
124 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,6 @@ | |
|
||
*.db* | ||
debug | ||
groups.toml | ||
launchpad.toml | ||
launchpad-organizer | ||
launchpad.yaml | ||
|
||
dist/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"pages": [ | ||
{ | ||
"Other": [ | ||
"Automator", | ||
"Chess", | ||
"DVD Player", | ||
"Font Book", | ||
"Image Capture", | ||
"QuickTime Player", | ||
"Stickies", | ||
"TextEdit", | ||
"Time Machine", | ||
"Activity Monitor", | ||
"AirPort Utility", | ||
"Audio MIDI Setup", | ||
"Bluetooth File Exchange", | ||
"Boot Camp Assistant", | ||
"ColorSync Utility", | ||
"Console", | ||
"Digital Color Meter", | ||
"Disk Utility", | ||
"Grab", | ||
"Grapher", | ||
"Keychain Access", | ||
"LCC Connection Utility", | ||
"Logitech Unifying Software", | ||
"Migration Assistant", | ||
"Script Editor", | ||
"System Information", | ||
"Terminal", | ||
"VoiceOver Utility", | ||
"XQuartz" | ||
], | ||
"Porg": [ | ||
"Atom", | ||
"Brave", | ||
"iTerm" | ||
] | ||
}, | ||
{ | ||
"Other2": [ | ||
"Atom", | ||
"Brave", | ||
"iTerm" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
pages: | ||
- | ||
Other: | ||
- Automator | ||
- Chess | ||
- DVD Player | ||
- Font Book | ||
- Image Capture | ||
- QuickTime Player | ||
- Stickies | ||
- TextEdit | ||
- Time Machine | ||
- Activity Monitor | ||
- AirPort Utility | ||
- Audio MIDI Setup | ||
- Bluetooth File Exchange | ||
- Boot Camp Assistant | ||
- ColorSync Utility | ||
- Console | ||
- Digital Color Meter | ||
- Disk Utility | ||
- Grab | ||
- Grapher | ||
- Keychain Access | ||
- LCC Connection Utility | ||
- Logitech Unifying Software | ||
- Migration Assistant | ||
- Script Editor | ||
- System Information | ||
- Terminal | ||
- VoiceOver Utility | ||
- XQuartz | ||
Porg: | ||
- Atom | ||
- Brave | ||
- iTerm | ||
- | ||
Other2: | ||
- Atom | ||
- Brave | ||
- iTerm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
#!/bin/bash | ||
|
||
rm $HOME/Library/Application\ Support/Dock/*.db | ||
defaults write com.apple.dock ResetLaunchPad -bool true | ||
killall Dock | ||
killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package main | ||
|
||
import ( | ||
"encoding/json" | ||
"fmt" | ||
"io/ioutil" | ||
"log" | ||
|
||
"gopkg.in/yaml.v2" | ||
) | ||
|
||
func main() { | ||
var pages map[string][]map[string][]string | ||
|
||
data, err := ioutil.ReadFile("launchpad.yaml") | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
|
||
err = yaml.Unmarshal(data, &pages) | ||
if err != nil { | ||
log.Fatalf("error: %v", err) | ||
} | ||
// fmt.Printf("--- t:\n%v\n\n", pages) | ||
itemJSON, _ := json.Marshal(pages) | ||
fmt.Println(string(itemJSON)) | ||
} |