Code Monkey home page Code Monkey logo

base16-sway's Introduction

base16-sway

This repository is meant to work with chriskempson/base16. It provides a simple template that can be used with the base16 color schemes to generate a functional config file for swaywm/sway, a tiling and dynamic window manager.

Usage

I imply, that since you are reading this you have already a working sway config. If not, please create one. Sway does not import settings from xresources yet like i3, but it can source a file via include command. We are going to use this feature here:

  1. Paste include colorscheme in your config. colorscheme is a reference to file, which will contain your chosen theme.
  2. Paste in your config:
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name         Border  BG      Text    Indicator Child Border
client.focused          $base05 $base0D $base00 $base0D $base0D
client.focused_inactive $base01 $base01 $base05 $base03 $base01
client.unfocused        $base01 $base00 $base05 $base01 $base01
client.urgent           $base08 $base08 $base00 $base08 $base08
client.placeholder      $base00 $base00 $base05 $base00 $base00
client.background       $base07
  1. If you use a statusbar, paste following block in the bar section in your config:
colors {
    background $base00
    separator  $base01
    statusline $base04

    # State             Border  BG      Text
    focused_workspace   $base05 $base0D $base00
    active_workspace    $base05 $base03 $base00
    inactive_workspace  $base03 $base01 $base05
    urgent_workspace    $base08 $base08 $base00
    binding_mode        $base00 $base0A $base00
}

include colorscheme should be pasted above the configs from points 2 and 3. An absolutely minimal example is shown in config file.

Now let's create a colorscheme file containing a theme. Since the file is referred to by name it should be placed in the same directory as your sway config. Let's pick default dark theme as example and install it via curl in ~/.config/sway/:

$ curl https://raw.githubusercontent.com/rkubosz/base16-sway/master/themes/base16-default-dark.config > ~/.config/sway/colorscheme

and reload config with shift+mod+c.

base16-sway's People

Contributors

khamer avatar rkubosz avatar mnussbaum avatar bodemcesickag avatar

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.