Skip to content

i3wm

The community/apps/i3wm directory provides Talon bindings for the i3 window manager on Linux. The two files in this directory work together to enable voice control of i3.

  • i3wm.talon: This file contains the Talon commands that a user can say to control i3. It uses the actions defined in i3wm.py to perform actions. For example, saying "port 1" will trigger the user.i3wm_switch_to_workspace(number_small) action, passing "1" as the argument. This switches i3 to workspace 1. The file also includes commands for moving, resizing, and managing windows, launching applications, and locking the screen. Some commands are generic such as "win kill" while others are specific to i3 such as "reload i three config". Note that the file uses user.i3wm tag to activate the commands, so you must enable this tag to use these commands.

  • i3wm.py: This file defines the Talon module, settings, context, and actions that are used by i3wm.talon. It sets the user.i3wm tag, defines settings such as the i3 config path and modifier key, and contains the implementation of the actions called from i3wm.talon. Most actions involve executing the i3-msg command to interact with the i3 window manager. For example, i3wm_switch_to_workspace calls i3-msg workspace number 1 to switch to workspace 1. The file also includes actions to launch applications using the i3 mod key and execute shell commands.