Crates.io | swaymode-exec |
lib.rs | swaymode-exec |
version | 0.1.1 |
source | src |
created_at | 2024-08-30 18:43:16.00076 |
updated_at | 2024-08-30 18:48:54.404122 |
description | run commands when sway changes keybind mode |
homepage | |
repository | |
max_upload_size | |
id | 1358047 |
size | 11,034 |
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.
Installing is quite simple, just run:
git clone _this_repo_
cargo install --path .
# This should go into $HOME/${XDG_CONFIG_HOME:-.config}/swaymode-exec.toml
# Mode name to trigger on
[audio]
# This is run when the mode is set
start = "while true; do notify-send start; sleep 0.5; done"
# This is run when the mode changed
end = "notify-send end"
# Kill start command after mode is changed (default: false)
kill_start = true