swaymode-exec

Crates.ioswaymode-exec
lib.rsswaymode-exec
version0.1.1
sourcesrc
created_at2024-08-30 18:43:16.00076
updated_at2024-08-30 18:48:54.404122
descriptionrun commands when sway changes keybind mode
homepage
repository
max_upload_size
id1358047
size11,034
(jlo62)

documentation

README

swaymode-exec

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

Installing is quite simple, just run:

git clone _this_repo_
cargo install --path .

Configuring

# 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

ToDo:

  • specify custom config file
  • run commands via swayipc
Commit count: 0

cargo fmt