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 ini3wm.py
to perform actions. For example, saying "port 1" will trigger theuser.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 usesuser.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 byi3wm.talon
. It sets theuser.i3wm
tag, defines settings such as the i3 config path and modifier key, and contains the implementation of the actions called fromi3wm.talon
. Most actions involve executing thei3-msg
command to interact with the i3 window manager. For example,i3wm_switch_to_workspace
callsi3-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.