Giter VIP home page Giter VIP logo

tuilade's Introduction

Tuilade

A simple tool that generates a graphic representation of the i3 environment.

Installation

Simply clone the repository and compile with cargo (or cargo install).

Usage

You'll need to extract the i3 tree and pipe it to Tuilade:

i3-msg -t get_tree | cargo run | dot -Tpng

Of course, you can change the -Tpng to any of the output formats supported by dot. You can then pipe/save the output from idot/dot and visualized it however you want as well.

Display in a floating window

First, install tuilade to your path by running cargo install in tuilade's directory:

cargo install --path .

Then you can create a small script to simplify editing of the command in the Usage section, for example in your .config/i3 directory, possibly running tuilade in silent and no-swallows mode:

#!/bin/sh

i3-msg -t get_tree | $HOME/.cargo/bin/tuilade -s -n | dot -Tpng | feh --class fehi3tuilade -

Finally, you can add a binding to show the tree (in this example, $mod+t) and set the window to floating mode:

for_window [class="^fehi3tuilade$"] floating enable

bindsym $mod+t exec $HOME/.config/i3/tuilade.sh

Available options

Usage: tuilade [OPTIONS]

Options:
  -s, --silent   If enabled, will hide empty sections at best
  -n, --no-swallows  If enabled, will hide swallows
  -e, --expand-from <EXPAND_FROM>  Expand tree from a given level [default: workspace] [possible values: root, output, workspace, dock-area, con, floating-con]
  -p, --print-parents              Show the parents in the tree
  -h, --help     Print help
  -V, --version  Print version

Silent mode

Silent mode (-s or --silent) will try to hide empty or default sections.

tuilade's People

Contributors

lugrim avatar lymkwi avatar satosq 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.