lysyi3m / macos-terminal-themes Goto Github PK
View Code? Open in Web Editor NEWColor schemes for default macOS Terminal.app
Color schemes for default macOS Terminal.app
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.
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.
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
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 ๐
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?
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?
When running the command provided for iTerm terminal colours, I get a swift error.
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
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
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
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.
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!
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?
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.
Could we also have VSCode default themes : Light+ and Dark+ ?
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.
it's hard to imagine what it looks like by looking at the color palette picture ...
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.
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
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 ?
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
There should be a pink theme, like Unikitty:
https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/screenshots/unikitty.png
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
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.