项目作者: AndrewOlsen

项目描述 :
Show i3 keybinds already in use.
高级语言: Python
项目地址: git://github.com/AndrewOlsen/i3-used-keybinds.git
创建时间: 2017-08-15T02:26:46Z
项目社区:https://github.com/AndrewOlsen/i3-used-keybinds

开源协议:MIT License

下载


i3-used-keybinds

Show i3 keybinds already in use.

Simple python script that parses through an i3 config file to find assigned keybinds. This makes it easier for the user to assign new keybinds in i3 without having to grep the config file.

Requires terminaltables for pretty output.

pip install terminaltables

Features

  • Tries, albeit not very hard, to find an i3 config automatically.
  • If keybinds are set using a variable in place of Mod1 or Mod4, e.g. set $mod Mod4, it will still work. Hopefully.
  • There is a very primitive search function implemented.
    i3keybinds.py -k s will return all keybinds with a ‘s’ in them. This includes Shifts and symbols like minus. If you are looking for Shift+q you must add the +.
    i3keybinds.py -c kill will return all keybinds that execute the command ‘kill’.
  • It differentiates between super (Mod4) and meta (Mod1) keybinds.

The script spits out the keybinds in the same format as i3, in alphabetical order:

screenshot

Todo

  • gtk version