/i3-used-keybinds

Show i3 keybinds already in use.

Primary LanguagePythonMIT LicenseMIT

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