Giter Site home page Giter Site logo

base16-sway's Introduction

base16-sway

base16 template for sway.

This repository is meant to work with base16 from Tinted Theming. It provides a hook and template that can be used to dynamically load base16 color schemes in sway.

Installation

Clone the repository:

git clone https://github.com/freddiehaddad/base16-sway.git ~/.config/base16-sway

Copy the hook to your base16-shell hooks directory:

cp ~/.config/base16-sway/hooks/20_sway.sh ~/.config/base16-shell/hooks

Re-run your base16 theme to execute the hook:

base16_tokyo-night-dark

Verify the hook created the symbolic link to the correct template:

 sway.base16.conf โ‡’ /home/.../.config/base16-sway/themes/base16-tokyo-night-dark.config

In your sway configuration file (near the top), import the theme:

include $HOME/.config/tinted-theming/sway.base16.conf

Then, below the color scheme import, set the colors:

# 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

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
}

If sway is running, the hook will send the message swaymsg reload to update the theme.

Waybar and Sway

If you're also using base16-waybar, make sure the waybar hook runs first. Otherwise, sway might reload the config before waybar is updated.

Other

Original repo

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.