Giter VIP home page Giter VIP logo

slippy's Introduction

slippy

A lisp configuration tool for sway window manager

Installation

This has to be compiled from source, so you need the rust toolchain installed. Not tested on rust versions older than 1.70.

Make a local clone of this repo, then run:

    make install

and that should install the slippy binary to ~/.local/bin (or to whatever location this command returns: systemd-path user-binaries).

And add these lines to your sway config file:

    # run at startup
    exec bash -c "sleep 1; /home/<username>/.local/bin/slippy 2>&1 >> .var/slippy.log"
    # reload slippy config
    bindsym $mod+Shift+s exec bash -c "killall slippy; /home/<username>/.local/bin/slippy 2>&1 >> .var/slippy.log"

Usage

Slippy looks for a config file in ~/.config/slippy/config.lisp. There's a example-config.lisp file in this repo that can be used as a starting point.

Slippy uses tulisp, which is a lisp interpreter that implements a small subset of Emacs lisp. All functions exposed by tulisp can be used in slippy's config file, and a list is available at: https://docs.rs/tulisp/latest/tulisp/builtin/index.html

In addition to tulisp features, slippy currently provides these methods:

name description parameters returns
transitions change transparency of windows as they become active or inactive (1) duration for each transition, in ms. (2) opacity for active windows, 0.0 to 1.0. (3) opacity for inactive windows nil
get-outputs return all outputs known to sway none a list of plists, one plist per output
set-output set output parameters accepts keyword arguments (aka a plist) with the following keywords: :name, :scale, :resolution,:pos-x and :pos-y a plist for the output that was updated, with latest values.

slippy's People

Contributors

shsms avatar dependabot[bot] avatar

Watchers

 avatar

Forkers

scaevola

slippy's Issues

Add support for command-line args

The smallest thing that would be useful would be to add a slippy-mode global variable to the lisp env, coming from the command line argument passed to slippy.

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.