项目作者: cqql

项目描述 :
Generate visual overlays from your i3 bindings
高级语言: Python
项目地址: git://github.com/cqql/alluvium.git
创建时间: 2020-06-11T22:45:35Z
项目社区:https://github.com/cqql/alluvium

开源协议:GNU General Public License v3.0

下载


alluvium - interactive bindings visualizer for i3

alluvium guides you through your keybindings and modes in i3 as you enter them. It is
heavily inspired by remontoire and reuses
its comment syntax in the i3/config file to learn about keybindings, modes and their
description.

Default overlay After entering Settings mode After entering Session mode
Overlay Overlay Overlay

Usage

Install alluvium, for example via pip install alluvium, and run it manually. It will
connect to i3 and show your bindings - if you put remontoire annotations into your config.

To use alluvium in i3, ensure that the alluvium executable is callable by i3. So if you
installed it in pyenv, you might need to put a symlink to $(pyenv which alluvium) into
your .local/bin, so that i3 can find the executable without knowing about pyenv.

  1. ## Launch // Toggle alluvium // <> ? ##
  2. bindsym $mod+Shift+question $run alluvium --toggle
  3. ## Settings // Enter Settings Mode // <> F11 ##
  4. mode "Settings" {
  5. ## Settings // Control Center // c ##
  6. bindsym c exec gnome-control-center; mode "default"
  7. ## Settings // Display // d ##
  8. bindsym d exec gnome-control-center display; mode "default"
  9. ## Settings // Wifi // w ##
  10. bindsym w exec gnome-control-center wifi; mode "default"
  11. ## Settings // Bluetooth // b ##
  12. bindsym b exec gnome-control-center bluetooth; mode "default"
  13. ## Settings // Exit Settings Mode // Escape or <Ctrl> g ##
  14. bindsym Escape mode "default"
  15. bindsym Ctrl+g mode "default"
  16. }
  17. bindsym $mod+F11 mode "Settings"; $run alluvium --mode Settings --quit-on-default

The first binding toggles the overlay while the binding to $mod+F11 enters the settings
mode with an overlay showing the bindings available in that mode. --quit-on-default
makes the overlay disappear when you return to default mode. This is most helpful for
rarely used modes such as system settings as above or a mode to manage i3 itself.

Syntax

The config syntax is the same as in remontoire, that is

  1. ## <Group> // <Label> // <Keys> ##

with an extension to define modes. If a group contains a binding with a label of Enter ... Mode, alluvium recognizes the group as a mode. The enter binding shows up in the
Modes group in the top level display while the other bindings of the group are shown
when you enter the mode.

Arch Linux

  • Package created as: alluvium-git

Install with your favorite pacman helper (yay,pikaur,trizen, etc).
$ yay|pikaur|trizen -S alluvium-git