Skip to content

Commit

Permalink
Added the new Monaspace theme for Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
TimTr committed Nov 25, 2023
1 parent 08b50ad commit 76911b9
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 35 deletions.
Binary file modified Mac/Preferences/com.googlecode.iterm2.plist
100755 → 100644
Binary file not shown.
232 changes: 232 additions & 0 deletions Mac/Xcode/TimTr Monaspace.xccolortheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
<?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>DVTConsoleDebuggerInputTextColor</key>
<string>0.629499 0.595809 0.998957 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>SFMono-RegularItalic - 16.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0.88176 0.87387 0.892097 1</string>
<key>DVTConsoleDebuggerOutputTextFont</key>
<string>SFMono-RegularItalic - 16.0</string>
<key>DVTConsoleDebuggerPromptTextColor</key>
<string>0.776651 0.796145 0.778473 1</string>
<key>DVTConsoleDebuggerPromptTextFont</key>
<string>SFMono-RegularItalic - 16.0</string>
<key>DVTConsoleExectuableInputTextColor</key>
<string>0.986042 0 0.0946885 1</string>
<key>DVTConsoleExectuableInputTextFont</key>
<string>SFMono-RegularItalic - 16.0</string>
<key>DVTConsoleExectuableOutputTextColor</key>
<string>0.17236 0.910542 0.998932 1</string>
<key>DVTConsoleExectuableOutputTextFont</key>
<string>SFMono-RegularItalic - 16.0</string>
<key>DVTConsoleTextBackgroundColor</key>
<string>0.064263 0.067871 0.0815955 1</string>
<key>DVTConsoleTextInsertionPointColor</key>
<string>1 1 1 1</string>
<key>DVTConsoleTextSelectionColor</key>
<string>0.397 0.397 0.302 1</string>
<key>DVTFontAndColorVersion</key>
<integer>1</integer>
<key>DVTLineSpacing</key>
<real>1.1000000238418579</real>
<key>DVTMarkupTextBackgroundColor</key>
<string>0.153318 0.157241 0.177321 1</string>
<key>DVTMarkupTextBorderColor</key>
<string>0.221053 0.224662 0.243136 1</string>
<key>DVTMarkupTextCodeFont</key>
<string>SFMono-Regular - 13.0</string>
<key>DVTMarkupTextEmphasisColor</key>
<string>0.42772 0.465692 0.465582 1</string>
<key>DVTMarkupTextEmphasisFont</key>
<string>.SFNS-RegularItalic - 16.0</string>
<key>DVTMarkupTextInlineCodeColor</key>
<string>0.42772 0.465692 0.465582 0.7</string>
<key>DVTMarkupTextLinkColor</key>
<string>0.1 0.1 0.819 1</string>
<key>DVTMarkupTextLinkFont</key>
<string>.SFNS-Regular - 16.0</string>
<key>DVTMarkupTextNormalColor</key>
<string>0.42772 0.465692 0.465582 1</string>
<key>DVTMarkupTextNormalFont</key>
<string>.SFNS-Regular - 16.0</string>
<key>DVTMarkupTextOtherHeadingColor</key>
<string>0.42772 0.465692 0.465582 0.5</string>
<key>DVTMarkupTextOtherHeadingFont</key>
<string>.SFNS-Regular - 22.4</string>
<key>DVTMarkupTextPrimaryHeadingColor</key>
<string>0.42772 0.465692 0.465582 1</string>
<key>DVTMarkupTextPrimaryHeadingFont</key>
<string>.SFNS-Regular - 38.4</string>
<key>DVTMarkupTextSecondaryHeadingColor</key>
<string>0.42772 0.465692 0.465582 1</string>
<key>DVTMarkupTextSecondaryHeadingFont</key>
<string>.SFNS-Regular - 28.8</string>
<key>DVTMarkupTextStrongColor</key>
<string>0.42772 0.465692 0.465582 1</string>
<key>DVTMarkupTextStrongFont</key>
<string>.SFNS-Bold - 16.0</string>
<key>DVTScrollbarMarkerAnalyzerColor</key>
<string>0.403922 0.372549 1 1</string>
<key>DVTScrollbarMarkerBreakpointColor</key>
<string>0.290196 0.290196 0.968627 1</string>
<key>DVTScrollbarMarkerDiffColor</key>
<string>0.556863 0.556863 0.556863 1</string>
<key>DVTScrollbarMarkerDiffConflictColor</key>
<string>0.968627 0.290196 0.290196 1</string>
<key>DVTScrollbarMarkerErrorColor</key>
<string>0.968627 0.290196 0.290196 1</string>
<key>DVTScrollbarMarkerRuntimeIssueColor</key>
<string>0.643137 0.509804 1 1</string>
<key>DVTScrollbarMarkerWarningColor</key>
<string>0.937255 0.717647 0.34902 1</string>
<key>DVTSourceTextBackground</key>
<string>0.0593097 0.0593209 0.059307 1</string>
<key>DVTSourceTextBlockDimBackgroundColor</key>
<string>0.5 0.5 0.5 1</string>
<key>DVTSourceTextCurrentLineHighlightColor</key>
<string>0.0688602 0.0815624 0.132557 1</string>
<key>DVTSourceTextInsertionPointColor</key>
<string>1 1 1 1</string>
<key>DVTSourceTextInvisiblesColor</key>
<string>0.5 0.5 0.5 1</string>
<key>DVTSourceTextSelectionColor</key>
<string>0.459354 0.158262 0.0371366 1</string>
<key>DVTSourceTextSyntaxColors</key>
<dict>
<key>xcode.syntax.attribute</key>
<string>0.145098 0.568627 0.52549 1</string>
<key>xcode.syntax.character</key>
<string>0.845619 0.845619 0.845619 1</string>
<key>xcode.syntax.comment</key>
<string>0.388652 0.450257 0.480376 1</string>
<key>xcode.syntax.comment.doc</key>
<string>0.262099 0.4621 0.495959 1</string>
<key>xcode.syntax.comment.doc.keyword</key>
<string>0.169579 0.293427 0.31694 1</string>
<key>xcode.syntax.declaration.other</key>
<string>0.990419 0.500286 0.0328552 1</string>
<key>xcode.syntax.declaration.type</key>
<string>0.918666 1 0 1</string>
<key>xcode.syntax.identifier.class</key>
<string>0.713704 0.249773 0.707592 1</string>
<key>xcode.syntax.identifier.class.system</key>
<string>0.427451 0.67451 1 1</string>
<key>xcode.syntax.identifier.constant</key>
<string>0.875867 0.548301 0.784713 1</string>
<key>xcode.syntax.identifier.constant.system</key>
<string>0.427451 0.67451 1 1</string>
<key>xcode.syntax.identifier.function</key>
<string>0.915091 0.478554 0.845259 1</string>
<key>xcode.syntax.identifier.function.system</key>
<string>0.886388 0.983859 0 1</string>
<key>xcode.syntax.identifier.macro</key>
<string>0.92549 0.415686 0.384314 1</string>
<key>xcode.syntax.identifier.macro.system</key>
<string>0.92549 0.415686 0.384314 1</string>
<key>xcode.syntax.identifier.type</key>
<string>0.587517 0.206665 0.58352 1</string>
<key>xcode.syntax.identifier.type.system</key>
<string>0.427451 0.67451 1 1</string>
<key>xcode.syntax.identifier.variable</key>
<string>0.719135 0.4568 0.617874 1</string>
<key>xcode.syntax.identifier.variable.system</key>
<string>0.427451 0.67451 1 1</string>
<key>xcode.syntax.keyword</key>
<string>0.114574 0.633574 0.964563 1</string>
<key>xcode.syntax.mark</key>
<string>0.572549 0.631373 0.694118 1</string>
<key>xcode.syntax.markup.code</key>
<string>0.665 0.052 0.569 1</string>
<key>xcode.syntax.number</key>
<string>0.227296 1 0.438567 1</string>
<key>xcode.syntax.plain</key>
<string>0.682131 0.74416 0.798634 1</string>
<key>xcode.syntax.preprocessor</key>
<string>0.825736 0.675904 0.162883 1</string>
<key>xcode.syntax.regex</key>
<string>0 0.976153 1 1</string>
<key>xcode.syntax.regex.capturename</key>
<string>0.560922 0.340188 0.63728 1</string>
<key>xcode.syntax.regex.charname</key>
<string>0.427451 0.67451 1 1</string>
<key>xcode.syntax.regex.number</key>
<string>0.445898 0.967334 0.999197 1</string>
<key>xcode.syntax.regex.other</key>
<string>0.731204 0.763292 0.842913 1</string>
<key>xcode.syntax.string</key>
<string>0.991358 0.392449 0.372727 1</string>
<key>xcode.syntax.url</key>
<string>0.186306 0.478119 0.849336 1</string>
</dict>
<key>DVTSourceTextSyntaxFonts</key>
<dict>
<key>xcode.syntax.attribute</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.character</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.comment</key>
<string>MonaspaceRadon-ExtraLight - 17.0</string>
<key>xcode.syntax.comment.doc</key>
<string>MonaspaceRadon-ExtraLight - 17.0</string>
<key>xcode.syntax.comment.doc.keyword</key>
<string>MonaspaceNeon-SemiBold - 17.0</string>
<key>xcode.syntax.declaration.other</key>
<string>MonaspaceArgon-SemiBold - 17.0</string>
<key>xcode.syntax.declaration.type</key>
<string>MonaspaceArgon-SemiBold - 17.0</string>
<key>xcode.syntax.identifier.class</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.class.system</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.constant</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.constant.system</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.function</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.function.system</key>
<string>MonaspaceArgon-SemiBold - 17.0</string>
<key>xcode.syntax.identifier.macro</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.macro.system</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.type</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.type.system</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.variable</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.identifier.variable.system</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.keyword</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.mark</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.markup.code</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.number</key>
<string>MonaspaceKrypton-SemiBold - 17.0</string>
<key>xcode.syntax.plain</key>
<string>MonaspaceArgon-ExtraLight - 17.0</string>
<key>xcode.syntax.preprocessor</key>
<string>MonaspaceKrypton-Medium - 17.0</string>
<key>xcode.syntax.regex</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.regex.capturename</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.regex.charname</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.regex.number</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.regex.other</key>
<string>MonaspaceArgon-Light - 17.0</string>
<key>xcode.syntax.string</key>
<string>MonaspaceKrypton-ExtraLight - 17.0</string>
<key>xcode.syntax.url</key>
<string>MonaspaceKrypton-ExtraLight - 17.0</string>
</dict>
</dict>
</plist>
57 changes: 22 additions & 35 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Dotfiles for Tim Triemstra

Documentation for these `dotfiles` can be [found here](https://timtr.github.io/Dotfiles/Docs/).

On a Mac, first install Xcode or the command line tools, then run:

```
Expand All @@ -24,46 +22,31 @@ The first install requires that you run `setup.sh` from within the local `Dotfil

Once installed, a tool called `help.sh` is runable from the PATH for additional help.

## Overview

## Features

**local.sh** - Installs a file called `~/local.sh` (if doesn't exist) that you can customize with settings that do not belong checked into GitHub, for instance set certain keys, or environment variables. This is also the file to add things like feature flags during development, add a Swift toolchain, or to enable secret build settings.

**ZSH settings** - sets up the prompt, `PATH`, and other basic settings. Note that `.zshenv` sets up the PATH so it works even when there is no interactive terminal session, and `.zshrc` will source this file for a consistent PATH for terminal windows.

Files ending in `.sh` are often renamed to have a "dot" prefix and no extension (`.sh` removed). The the `.sh` extension hints to text editors to highlight like a shell script, and also makes it clear which are "source" versions of these files, versus the installed no-extension versions.


### Other small features

- Creates a symlink from ~/Dropbox to the new ~/Library/CloudStorage directory if it exists

This is my personal collection of setup scripts for macOS (and soon Linux), including settings for the `zsh` shell, Terminal, Xcode, and several other tools and apps. This set will also install Ruby, along with `rbenv` as a way to control which version of Ruby should act as the system default. This is useful for tools like `jekyll`.

### Order of loading
The scripts are designed to work in `zsh`, although they rarely use advanced features and are likely portable to other shells. SImply run `setup.sh` to install, or re-install, at any time.

For reference, `zsh` config files are loaded in the following order:
The setup will create a custom folder `$HOME/bin/` that is added to the PATH variable and useful for putting random stuff in the path. For Homebrew and related tools support, it also adds `/usr/local/bin` (for Intel) and `/opt/homebrew/bin` (for Apple) to the PATH.

```
.zshenv -- global (even non-interactive), useful for PATH and tooling variables
.zshrc -- loaded from the interactive shell (e.g. a Terminal window)
.zprofile -- if login (not using this file in current setup)
```
There are a few aliases added that make it easy to install Homebrew and other tools, rather than trying to do the installs directly from `setup.sh`. Mostly this is because the install is a multi-step process, and it is just a lot easier to run the full setup, then manually type `setup-brew.sh` when everything else looks to be working.


## Setup a custom Swift toolchain
## Features

You can download new Swift toolchains from [Swift.org](https://swift.org/download/#snapshots) and set them up to be used by default. The `~/local.sh` file is perfect to place to configure these settings rather than make the changes to the main Dotfile repo since it is likely to be a per-machine configuration.
**local.sh** - Installs a file called `~/local.sh` (if doesn't exist) that you can customize with settings that do not belong checked into GitHub, for instance set certain keys, or environment variables. This is also the file to add things like feature flags during development, add a Swift toolchain, or to enable secret build settings.

**reset** - use this parameter from `setup.sh` to overwrite all settings, even `~/local.sh`

## Overview
**ZSH settings** - sets up the prompt, `PATH`, and other basic settings. Note that `.zshenv` sets up the PATH so it works even when there is no interactive terminal session, and `.zshrc` will source this file for a consistent PATH for terminal windows.

This is my personal collection of setup scripts for macOS (and soon Linux), including settings for the `zsh` shell, Terminal, Xcode, and several other tools and apps. This set will also install Ruby, along with `rbenv` as a way to control which version of Ruby should act as the system default. This is useful for tools like `jekyll`.
The added `~/Dropbox` symlink points to `~/Library/CloudStorage/Dropbox` if it exists

The scripts are designed to work in `zsh`, although they rarely use advanced features and are likely portable to other shells. SImply run `setup.sh` to install, or re-install, at any time.

The setup will create a custom folder `$HOME/bin/` that is added to the PATH variable and useful for putting random stuff in the path. For Homebrew and related tools support, it also adds `/usr/local/bin` (for Intel) and `/opt/homebrew/bin` (for Apple) to the PATH.
## Using a custom Swift toolchain

There are a few aliases added that make it easy to install Homebrew and other tools, rather than trying to do the installs directly from `setup.sh`. Mostly this is because the install is a multi-step process, and it is just a lot easier to run the full setup, then manually type `setup-brew.sh` when everything else looks to be working.
You can download new Swift toolchains from [Swift.org](https://swift.org/download/#snapshots) and set them to be used by default. The `~/local.sh` file is perfect to place to configure these settings per-machine, rather than configure in the main Dotfiles repo.


## Demos
Expand All @@ -73,17 +56,21 @@ Once installed, you can install Homebrew and run demos. For example, run `demo-h
You can also open the `~/Developer/demo-safari-cycle.html` file to launch Safari and begin cycling through many web pages, implying a sort of automated web test harness.


## License

These scripts and settings are provided for free, covered by the MIT license.


## Useful reference links

This project's' [documentation for Dotfiles FIXME](https://dotfiles.github.io)
Documentation (or the start of docs) can be [found here](https://timtr.github.io/Dotfiles/Docs/).

Which `zsh` files contain which settings: [CodeSpaces and Dotfiles](https://unix.stackexchange.com/questions/71253/what-should-shouldnt-go-in-zshenv-zshrc-zlogin-zprofile-zlogout)

Docs on using `setup.sh` with [GitHub CodeSpaces and Dotfiles](https://docs.github.com/en/codespaces/customizing-your-codespace/personalizing-codespaces-for-your-account)

### Order of loading

For reference, `zsh` config files are loaded in the following order:

```
.zshenv -- global (even non-interactive), useful for PATH and tooling variables
.zshrc -- loaded from the interactive shell (e.g. a Terminal window)
.zprofile -- if login (not using this file in current setup)
```

0 comments on commit 76911b9

Please sign in to comment.