| Crates.io | swaymode-exec |
| lib.rs | swaymode-exec |
| version | 1.0.1 |
| created_at | 2024-08-30 18:43:16.00076+00 |
| updated_at | 2025-05-29 08:51:32.577198+00 |
| description | run commands when sway changes keybind mode |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1358047 |
| size | 11,754 |
Hi, this is a daemon for sway that runs commands on kekybind mode changes.
I like to use it to set screen timeouts or for custom keybinds for eww.
# This should go into $HOME/${XDG_CONFIG_HOME:-.config}/swaymode-exec.toml
# All commands are run by sh; so if you need to run multiple commands use '&'
[mode-name-to-trigger-on]
start = "command-to-run-when-mode-is-activated"
end = "command-to-run-when-mode-is-deactivated"
kill_start = "command-to-run-when-mode-is-activated-and-to-kill-when-mode-is-deactivated"