/console-solarized

A Solarized colorscheme for the Linux console

Primary LanguageShellMIT LicenseMIT

Solarized Colorscheme for the Linux Console

Author: Alexandre de Verteuil
Contact: alexandre.deverteuil@gmail.com
Date: 2013-09-21

Introduction

This is a port of the Solarized colorscheme for the Linux console. Developed by Alexandre de Verteuil alexandre.deverteuil@gmail.com.

Original Solarized colorscheme developed by: Ethan Schoonover.

See the Solarized homepage for screenshots, details and colorscheme versions for Vim, Mutt, popular terminal emulators and other applications.

Main Solarized project page:http://ethanschoonover.com/solarized
Main Solarized code repository:https://github.com/altercation/solarized

Installing

Method 1: /etc/issue

  1. Move /etc/issue to /etc/issue.backup.

  2. Write the output of console-solarized to /etc/issue:

    # console-solarized [dark|light] > /etc/issue
    

    You may get better results if you put the clear screen escape sequences first:

    # clear > /etc/issue
    # console-solarized [dark|light] >> /etc/issue
    # cat /etc/issue.backup >> /etc/issue
    

Method 2: systemd unit

Note

This installation procedure is for a systemd managed Linux distribution such as ArchLinux.

  1. Copy the source files to the directories indicated by the following table. You should edit /etc/console-solarized.conf if you wish to use the light theme. The dark theme is enabled by default.

    File list

    Location to copy to

    Edit

    console-solarized

    /usr/local/bin/

     

    console-solarized.conf

    /etc/

    yes

    console-solarized@.service

    /etc/systemd/system/

     

    solarized.conf

    /etc/systemd/system/getty@.service.d/

     
  2. Run systemctl daemon-reload as root to make systemd reload the configuration files.

Bug: It should be written in C.

Choosing theme

console-solarized will prioritize the argument for setting the theme. If no argument is provided, /etc/console-solarized.conf is used.

Method 1: first argument

Set Solarized dark:

$ console-solarized dark

or Solarized light:

$ console-solarized light

Method 2: /etc/console-solarized.conf

  1. Copy console-solarized.conf to /etc/console-solarized.conf.
  2. Configure to your taste.

Contributing

Pull requests for installation instructions on other systems, portability, corrections, and such are welcome!

Copying

Copyright © 2011 Ethan Schoonover

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.