Crates.io | alt |
lib.rs | alt |
version | 0.1.0 |
source | src |
created_at | 2020-06-13 13:01:34.817251 |
updated_at | 2020-06-13 13:01:34.817251 |
description | An Event Aggregator for ktrl |
homepage | https://https://github.com/ItayGarin/alt |
repository | https://https://github.com/ItayGarin/alt |
max_upload_size | |
id | 253544 |
size | 48,226 |
alt
is an extension to ktrl.
It listens to system events such as window-focus changes, Emacs hooks, etc...
These events are aggregated and sent over to ktrl
via its ipc
interface.
alt 0.1
Itay G. <thifixp@gmail.com>
An Event Aggregator for ktrl
USAGE:
alt [FLAGS] [OPTIONS]
FLAGS:
--debug Enables debug level logging
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--cfg <CONFIG> Path to your alt config file. Default: .alt.ron
--log <LOGFILE> Path to the log file. Default: .alt.log```
alt
cargo install --path .
~/.alt.ron
file (See my example below).exec ~/.cargo/bin/alt
The default config file path is ~/.alt.ron
.
You can override this with the --cfg
cli argument.
(
aggs: [
// Ivy Event Aggregator
(requirements: [
RqFocus("emacs"),
RqExtEvent("ivy"),
],
on_ipc: "TurnOnLayerAlias(\"ivy\")",
off_ipc: "TurnOffLayerAlias(\"ivy\")"),
],
)
This will toggle the ivy
ktrl layer when Emacs is in foucs AND ivy
is active