Skip to content
/ tuilade Public

A simple tool to transform your I3 save trees into input parseable by idot

Notifications You must be signed in to change notification settings

Lymkwi/tuilade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple tool to transform your I3 save trees into input parseable by idot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages