Git Product home page Git Product logo

macos-terminal-themes's People

Contributors

9001 avatar anton-slim avatar artlaman avatar chapeupreto avatar charginghawk avatar chenglou avatar darqueos avatar fanahova avatar frani avatar graham42 avatar icrowley avatar jamesnimlos avatar jayagra avatar jnmandal avatar jphager2 avatar lysyi3m avatar markuswntr avatar mischah avatar quezler avatar rgdyy avatar sepehrtheraiss avatar simonrice avatar synestematic avatar tmobaird avatar wknowles avatar zhulduz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

macos-terminal-themes's Issues

file is corrupt

Hi,

I double clicked the .terminal file and it goes:

screen shot 2017-08-16 at 11 39 20 pm

why is it corrupt?

Converting to iTerm isn't working on macOS 14+

Description

When running the command provided for iTerm terminal colours, I get a swift error.

Recreating issue

Prior to the command provided

./tools/iterm2terminal.swift /path/to/awesome-scheme.itermcolors

I ran

cd macos-terminal-themes
mkdir ~/itermcolors/
touch ~/itermcolors/awesome-scheme.itermcolors

and can run

./tools/iterm2terminal.swift ~/itermcolors/awesome-scheme.itermcolors

Error

I get the following error:

./tools/iterm2terminal.swift:89:53: warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
                    let colorData = NSKeyedArchiver.archivedData(withRootObject: color)
                                                    ^
./tools/iterm2terminal.swift:102:32: warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
        return NSKeyedArchiver.archivedData(withRootObject: font)
                               ^
Error: Unable to load file:///Users/jakewilliami/itermcolors/awesome-scheme.itermcolors

My attempt at a fix

I think the swift code might need to be changed?
I rewrote it a little here:

let colorData = try? NSKeyedArchiver.archivedData(withRootObject: color, requiringSecureCoding: false)
terminalScheme[terminalColorKey] = colorData

but I am still getting the error:

./tools/iterm2terminal.swift:102:32: warning: 'archivedData(withRootObject:)' was deprecated in macOS 10.14: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
        return NSKeyedArchiver.archivedData(withRootObject: font)
                               ^
Error: Unable to load file:///Users/jakewilliami/itermcolors/awesome-scheme.itermcolors

Could you add the script used to generate preview images of each theme?

Thanks for this collection/conversion of iterm2 themes!

I'd like to be able generate preview images of my own (own code snippet, own language).

I find that I like/dislike terminal themes based a lot on how specific languages/programs look in them.

Could you add to the repo the script you use for the preview images?

Thanks.

Green monitor theme

Thanks for a brilliant collection of themes.

I'm looking for a nostalgic old green monitor theme. Can you add one? Or do you know where else I can find one?

PS! The Web server sends the profile files as text/plain, so they display in the browser rather than downloading. Some browsers even add the extension .txt which must be removed manually for Terminal to recognize the file.

$ curl --head https://raw.githubusercontent.com/lysyi3m/macos-terminal-themes/master/themes/3024%20Day.terminal
content-type: text/plain; charset=utf-8

How I change my own theme to the Solarized Dracula?

I download sox-terminal-themes-master files and double click Solarized Darcula.terminal to open a new terminal window, but it can't perform the new theme, even I import to my Preference->Description file, it still not work.

generate human readable colors table out of .terminal file

Is there a way to parse .terminal file to get rgb color values out of it? I can hack it myself if you can give me a hint on how to parse it.
I would like to have a list of colors used in a terminal theme.
Preferably I want it done in cross-platform way to simplify themes export into iTerm/linux terminal apps or preview of colors used in a theme for example in a web app.

TextBoldColor vs. BoldTextColor

Thanks for this awesome repo. I am loving these schemes! Your work is greatly appreciated

I believe there may be an error in the XML schemes for the Bold Text coloration. The desired key seems to be TextBoldColor, whereas all the schemes in this repo use BoldTextColor, a key not recognized when importing to Terminal.app.

This causes the default color for that type of text to be black, unreadable on most dark backgrounds.

Running OSX 10.10.5.

edit: I opened PR with changes. #3

iterm2 conversion does not run

I term2 conversion tool does not work and throws a bunch of swift errors

Error log when trying to convert a file

> ./iterm2terminal.swift ../schemes/MaterialDark.terminal

./iterm2terminal.swift:6:17: error: 'ErrorType' has been renamed to 'Error'
    enum Error: ErrorType {
                ^~~~~~~~~
                Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
./iterm2terminal.swift:6:10: error: type 'ThemeConvertor.Error' does not conform to protocol 'RawRepresentable'
    enum Error: ErrorType {
         ^
Swift.RawRepresentable:96:20: note: protocol requires nested type 'RawValue'; do you want to add it?
    associatedtype RawValue
                   ^
./iterm2terminal.swift:106:31: error: instance member 'arguments' cannot be used on type 'Process'
    let iTermFiles = [String](Process.arguments.dropFirst())
                              ^~~~~~~ ~~~~~~~~~
./iterm2terminal.swift:38:25: error: thrown expression type 'ThemeConvertor.Error' does not conform to 'Error'
            throw Error.NoArguments
                  ~~~~~~^~~~~~~~~~~
./iterm2terminal.swift:46:26: error: value of type 'URL?' has no member 'URLByDeletingLastPathComponent'
            let folder = iTermFileURL.URLByDeletingLastPathComponent!
                         ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./iterm2terminal.swift:47:30: error: value of type 'URL?' has no member 'URLByDeletingPathExtension'
            let schemeName = iTermFileURL.URLByDeletingPathExtension!.lastPathComponent!
                             ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
./iterm2terminal.swift:62:61: error: 'NSURL' is not implicitly convertible to 'URL'; did you mean to use 'as' to explicitly convert?
        guard let iTermScheme = NSDictionary(contentsOfURL: src) else {
                                                            ^
                                                                as URL
./iterm2terminal.swift:63:25: error: thrown expression type 'ThemeConvertor.Error' does not conform to 'Error'
            throw Error.UnableToLoadITermFile(src)
                  ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
./iterm2terminal.swift:69:22: error: value of type 'String' does not conform to expected dictionary value type 'AnyObject'
            "name" : scheme,
                     ^~~~~~
                            as AnyObject
./iterm2terminal.swift:76:43: error: missing argument label 'name:' in call
        if let font = archivedFontWithName("PragmataPro", size: 14) {
                                          ^
                                           name:
./iterm2terminal.swift:93:61: error: 'NSURL' is not implicitly convertible to 'URL'; did you mean to use 'as' to explicitly convert?
        NSDictionary(dictionary: terminalScheme).writeToURL(dest, atomically: true)
                                                            ^
                                                                 as URL
./iterm2terminal.swift:100:32: error: 'archivedDataWithRootObject' has been renamed to 'archivedData(withRootObject:)'
        return NSKeyedArchiver.archivedDataWithRootObject(font)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
                               archivedData               withRootObject:
<unknown>:0: note: 'archivedDataWithRootObject' was obsoleted in Swift 3

Tango

I cannot believe there is no Tango theme.
tango

Tmux key bindings for OSX terminal

This stuff works in Iterm 2 but I've really lost trust after some recent security issues (actually I evaluated it a number of years ago and didn't trust it then, but that's another matter).

Anyhow, with OSX terminal you have to do some tricks to send the ctrl-b-(arrow) keys to tmux.

The work around is described on superuser.com, I've been doing this for years now.

Would be great if osx-terminal-themes could ship with this pre-configured, dumb apple configuration file format is kinda opaque though, not sure how to edit all the terminal files automatically.

Colors not showing up

Hello,

When I install a theme such as AdventureTime it doesn't show up in the terminal properly. I think I am missing some kind of intermediate step? Here is a screenshot of what it shows after installing AdventureTime on my machine. I tried installing Tomorrow night and the text was just grey. Anyone know what I am missing? Thanks, and thank you for all the themes!

screen shot 2015-10-15 at 11 32 51 pm

Explain the theme screenshots?

Hi, sorry newbie here but looking at the screenshots in the readme, I have no idea what all the columns are rows are supposed to represent.
40m? 1;30m ??

Also, do I have to do something for the text colors to work? Double-clicking on a term file, I see it changes the background color and the "main" text color, but everything is the same color, no differences between folders and files, or the prompt, etc. Is that supposed to be like this?

General question: Format of a theme file / color

I have searched for a quite a while to understand the format of the theme file particularly the color.

For example, how do i parse the color under, say ANSIBlueColor:

<key>ANSIBlueColor</key>
<data>
YnBsaX...
</data>

Looks like the data (color value) is base64 encoded which when I decode gives some binary data. So, how do I parse the binary data to extract the color values for ANSIBlueColor?

Would be a huge help if you can shed some light on this. Thanks ๐Ÿ™

include selection color in screenshots?

A common issue for a number of the themes I like here are that the selection color doesn't work well with either the text color or the bold text color (it sometimes is the same as one of them, which makes text unreadable when selected).

I'd appreciate a preview image that shows what both types of text looks like when selected.

Alternative for applying custom themes to the terminal

Would it make sense to point out (within, e.g., the readme-file / man-page), that you can also apply themes to the terminal, by going to the terminal-settings?

  1. Download this repository
  2. Open Terminal
  3. Press cmd+, so that the Terminal-settings will open
  4. Switch to the tab profile
  5. Within profile switch to window
  6. Press on the circular "three-dot-menu"-button
  7. Choose import
  8. Navigate to the download-path of this repository and enter the folder themes
  9. Select (double-click) the theme that you would like to apply. The theme will then be added to the list within the terminal-settings.
  10. Choose your preferred theme within the terminal-settings and click the button standard
  11. Open up a new Terminal-window with cmd+n

Service that returns themes as JSON

Hi,

Just wanted to share that I wrote up a nodejs express service that can read these themes in and serve them as JSON. You can find the code here https://github.com/Larkenx/extended-ascii-previewer/blob/master/server.js#L39. It uses plist to grab the Base64 Encoded serialized color strings and a regular expression to grab the RGB values. From there, it converts it to a hex. Here's an example output for a theme:

{
      "name": "Afterglow",
      "Black": "#151515",
      "Blue": "#6c99ba",
      "BrightBlack": "#505050",
      "BrightBlue": "#6c99ba",
      "BrightCyan": "#7dd5cf",
      "BrightGreen": "#7e8d50",
      "BrightMagenta": "#9e4e85",
      "BrightRed": "#ac4142",
      "BrightWhite": "#f5f5f5",
      "BrightYellow": "#e5b566",
      "Cyan": "#7dd5cf",
      "Green": "#7e8d50",
      "Magenta": "#9e4e85",
      "Red": "#ac4142",
      "White": "#d0d0d0",
      "Yellow": "#e5b566",
      "Background": "#202020"
    }

You can fetch all of themes as JSON on my heroku hosted API at https://extended-ascii-viewer.herokuapp.com/color-themes.

everyday or weekly auto-change theme

Sooooo many cooool themes , I wanna to use each of them in my terminal
Could you please provide a option to auto-change theme everyday or weekly?

Is that possible to import .terminal with shell script in macOS?

Hello, I download the theme by curl. I want to import the .terminal theme to Terminal.app programmatically without opening Terminal.app or any window.

This command will import the theme but also open a Terminal window which I don't want.

open "path-to-theme/Theme.terminal"

Is that possible to import .terminal with a shell script in macOS? I want to put into in my bootstrap.sh.

Any idea how to copy all files together

sudo cp /macos-terminal-themes/schemes/* /Applications/Utilities/Terminal.app/Contents/Resources/Initial Settings

i tried the above
system is not allowing to copy the files.
cp: ./Wombat.terminal: Operation not permitted

any idea how to copy all file at once ?

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.