Sway::Config - a Raku module for parsing Sway window manager's config.

NAME

Sway::Config - a Raku module for parsing Sway window manager's config.

SYNOPSIS

use Sway::Config:auth<zef:CIAvash>;

# By default Sway::Config gets the config from Sway
my $config = Sway::Config.new;

# Giving the config content to Sway::Config
my $config2 = Sway::Config.new: :config('Your Config Here');

# Giving path of a config file to Sway::Config
my $config3 = Sway::Config.new: :config_path<Path to config file>;

put $config.match;

put $config.mode<resize>;

put $config.configs: :json;

INSTALLATION

You need to have Raku and zef, then run:


zef install --/test "Sway::Config:auth<zef:CIAvash>"

or if you have cloned the repo:


zef install .

TESTING


prove -ve 'raku -I.' --ext rakutest

ATTRIBUTES

METHODS

AUTHOR

Siavash Askari Nasr - https://www.ciavash.name

COPYRIGHT

Copyright Ā© 2021 Siavash Askari Nasr

LICENSE

This file is part of Sway::Config.

Sway::Config is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Sway::Config is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with Sway::Config. If not, see <http://www.gnu.org/licenses/>.

Sway::Config v0.1.0

Library and script for parsing Sway window manager's config file.

Authors

  • Siavash Askari Nasr

License

LGPL-3.0-or-later

Dependencies

JSON::FastPod::Contents:auth<zef:CIAvash>

Provides

  • Sway::Config
  • Sway::Config::Actions
  • Sway::Config::CLI
  • Sway::Config::Grammar
  • Sway::Config::Utils

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.