Skip to content

Commit

Permalink
Move README.rst to docs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobGM committed Feb 7, 2018
1 parent 0e35570 commit 29fb90d
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 80 deletions.
79 changes: 0 additions & 79 deletions README.rst

This file was deleted.

1 change: 1 addition & 0 deletions README.rst
80 changes: 79 additions & 1 deletion docs/readme.rst
Original file line number Diff line number Diff line change
@@ -1 +1,79 @@
.. include:: ../README.rst
.. |travis-ci| image:: https://travis-ci.org/JakobGM/astrality.svg?branch=master
:target: https://travis-ci.org/JakobGM/astrality

.. |coveralls| image:: https://coveralls.io/repos/github/JakobGM/astrality/badge.svg?branch=master
:target: https://coveralls.io/github/JakobGM/astrality?branch=master

.. |logo| image:: https://github.com/JakobGM/astrality/raw/master/docs/astrality_logo.png

===============================================================================
|logo| Astrality - A Dynamic Configuration File Manager |travis-ci| |coveralls|
===============================================================================

What Does It Do?
================

Astrality is a tool for managing configuration files and scheduling tasks related to those files.

You can create templates for your configuration files, and Astrality will replace placeholders within those templates with ``context`` values defined in a central configuration file. Furthermore, you can dynamically manipulate that ``context`` at predefined times and events.

**Possible use cases are:**

* Insert environment variables (e.g. ``$USER``) and command substitutions (e.g. ``$(xrandr | grep -cw connected)``) into configuration files that do not support them.
* Create a single source of truth for configuration options. Change your preferred font type or color scheme, and instantly see that change be applied across several different applications.
* Change your desktop wallpaper when your specific location (given by latitude and longitude) experiences dawn, noon, sunset, and dusk. It adapts to the length of day through the year. Make your `Conky modules <https://github.com/brndnmtthws/conky>`_ change font color accordingly.
* And much more... An example configuration with several examples is included.

The configuration format uses the flexible `YAML <http://docs.ansible.com/ansible/latest/YAMLSyntax.html#yaml-basics>`_ format, and the template language uses the `Jinja2 syntax <http://jinja.pocoo.org/docs/2.10/>`_, which is easy to get started with, but allows complex templating for those who need it.

It is relatively easy to create ``modules`` to your own liking. Pull requests with new themes, conky modules, and improvements are very welcome.

Getting Started
===============

Prerequisites
-------------
Astrality requires `python 3.6 <https://www.python.org/downloads/>`_ or greater. The included configuration for Astrality also contains modules which utilize `conky <https://wiki.archlinux.org/index.php/Conky>`_ and `feh <https://wiki.archlinux.org/index.php/feh>`_. You can either disable these modules or install their dependencies. An example installation on ArchLinux would be:

.. code-block:: console
sudo pacman -Syu conky feh python
The default configuration also uses the `Nerd Font <https://github.com/ryanoasis/nerd-fonts>`_ "FuraCode Nerd Font". Install it if you don't change the font in your configuration. On ArchLinux, it can be installed with the ``nerd-fonts-complete`` AUR package:

.. code-block:: console
yaourt -S nerd-fonts-complete
Installation
------------

Create a new virtualenv for python 3.6 (or use your system python 3.6 if you prefer). Install Astrality from `pypi <https://pypi.org/project/astrality/>`_ like so:

.. code-block:: console
pip3 install astrality
You should now be able to start `astrality` from your command line, but first, let's create an example configuration:

.. code-block:: console
astrality --create-example-config
And now start `astrality`:

.. code-block:: console
astrality
Your wallpaper should now be automatically changed during the different times of day.


Example initialization using the `i3 tiling window manager <https://github.com/i3/i3>`_:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add the following line to ``$XDG_CONFIG_HOME/i3/config``:

.. code-block:: console
exec --no-startup-id "astrality"

0 comments on commit 29fb90d

Please sign in to comment.