Commit Graph

644 Commits (master)
 

Author SHA1 Message Date
dependabot[bot] 334c4223ab
Bump serde_yaml from 0.9.14 to 0.9.17 (#243)
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.14 to 0.9.17.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.14...0.9.17)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot] 72b2a4a826
Bump serde_json from 1.0.85 to 1.0.91 (#242)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.85 to 1.0.91.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.85...v1.0.91)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot] e9aabba6ba
Bump env_logger from 0.9.1 to 0.10.0 (#240)
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.9.1...v0.10.0)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot] 1f07a8b0be
Bump regex from 1.6.0 to 1.7.1 (#239)
Bumps [regex](https://github.com/rust-lang/regex) from 1.6.0 to 1.7.1.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.6.0...1.7.1)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Takashi Kokubun dac4e87a3c Version 0.8.0 1 year ago
Perseus 17d50df194
Adds RELATIVE event catcher (#187)
close #180
1 year ago
dependabot[bot] 1986c0b7f3
Bump tokio from 1.23.0 to 1.24.1 (#229)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.23.0 to 1.24.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.0...tokio-1.24.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot] 0f42f93fe7
Bump nix from 0.25.0 to 0.26.1 (#223)
Bumps [nix](https://github.com/nix-rust/nix) from 0.25.0 to 0.26.1.
- [Release notes](https://github.com/nix-rust/nix/releases)
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.25.0...v0.26.1)

---
updated-dependencies:
- dependency-name: nix
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot] 4166b4c592
Bump indoc from 1.0.7 to 1.0.8 (#225)
Bumps [indoc](https://github.com/dtolnay/indoc) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/dtolnay/indoc/releases)
- [Commits](https://github.com/dtolnay/indoc/compare/1.0.7...1.0.8)

---
updated-dependencies:
- dependency-name: indoc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot] e5248a98c8
Bump serde from 1.0.145 to 1.0.152 (#226)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.145 to 1.0.152.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.152)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot] c6bea6a82e
Bump anyhow from 1.0.66 to 1.0.68 (#222)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.66 to 1.0.68.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.66...1.0.68)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Takashi Kokubun a8ad29bf7f Version 0.7.15 1 year ago
Zai-Chun Chen 3d55149056
fix: application None check when failed get the application name (#220)
* fix: application None check when failed get the application name

* Update src/client/hypr_client.rs

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
1 year ago
Takashi Kokubun 49b3f11b3c Version 0.7.14 1 year ago
Lae Chen c10006342c
Merge remaps (#217)
* Allow remaps to be merged.

* Fix formatting.
1 year ago
Takashi Kokubun 0c00d5c8c4 Version 0.7.13 1 year ago
Zai-Chun Chen e292e344b4
Feature hyprland (#216)
* init support for hyprland with hyprland-rs

* enable ci for feature* branches

* cargo fmt the code
1 year ago
Takashi Kokubun d5fec95843 Version 0.7.12 1 year ago
Kai Xia(夏恺) 9f5002ee1b
Ensure the launched commands are not terminated by the stop of xremap. (#214)
* Ensure the launched commands are not terminated by the stop of xremap.

Fix #213.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>

* also stop child processes on unhappy path.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>

* fix fmt

Signed-off-by: Kai Xia <kaix+github@fastmail.com>

Signed-off-by: Kai Xia <kaix+github@fastmail.com>
1 year ago
Takashi Kokubun cbf5cd027c Version 0.7.11 1 year ago
Lae Chen a759d5b516
Reconnect to X11 when existing connection stops working. (#212) 1 year ago
Takashi Kokubun 2c9c628516 Version 0.7.10 1 year ago
Lae Chen 14ca00cae3
Introduce keymap level `exact_match` option (#209)
* Introduce keymap level `exact_match` option.

Example:

  keymap:
    - exact_match: true
      remap:
        M-f: C-right

Given the above, and M-Shift-f is pressed:

- If `exact_match` is false or unset, the existing behaviour will be used,
  which will translate M-Shift-f to C-Shift-right.

- If `exact_match` is true, M-Shift-f will be sent as is, i.e. not matched.

* Perform exact match first.
1 year ago
dependabot[bot] 1082271759
Bump anyhow from 1.0.65 to 1.0.66 (#206)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.65 to 1.0.66.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.65...1.0.66)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Takashi Kokubun 97a538f67f Version 0.7.9 1 year ago
Lae Chen 8d3d62559e
Interleave pressing/releasing of modifier keys. (#208)
* Interleave pressing/releasing of modifier keys.

Pressing new modifier keys before releasing the old ones to avoid
triggering actions in applications that recognize the old keys.

For example, if we bind alt+f to ctrl+right, before this change, the
following key sequence is generated with alt+f:

(user)       send Alt_L      PRESS
(xremap)     send Alt_L      RELEASE
(xremap)     send Control_L  PRESS
(xremap)     send Right      PRESS
(xremap)     send Right      RELEASE
(xremap)     send Control_L  RELEASE
(xremap)     send Alt_L      PRESS
(user)       send Alt_L      RELEASE

The press + release of the alt key (both at the start and end of the
sequence) is causing apps like Firefox to show/focus the menu bar.

After this change, the following key sequence is generated with alt+f:

(user)       send Alt_L      PRESS
(xremap)     send Control_L  PRESS
(xremap)     send Alt_L      RELEASE
(xremap)     send Right      PRESS
(xremap)     send Right      RELEASE
(xremap)     send Alt_L      PRESS
(xremap)     send Control_L  RELEASE
(user)       send Alt_L      RELEASE

So the difference here is that we press the ctrl key before releasing
alt, so will not trigger apps like Firefox to show hide the menu when
alt+f is used, and a single press and release of the alt key will
still show the menu as their normal behavior.

As far as I can observe, this is also the behavior of AutoHotKey on Windows.

* Add test.
1 year ago
dependabot[bot] 5f97804180
Bump x11rb from 0.10.1 to 0.11.0 (#207)
Bumps [x11rb](https://github.com/psychon/x11rb) from 0.10.1 to 0.11.0.
- [Release notes](https://github.com/psychon/x11rb/releases)
- [Changelog](https://github.com/psychon/x11rb/blob/master/doc/changelog.md)
- [Commits](https://github.com/psychon/x11rb/compare/v0.10.1...v0.11.0)

---
updated-dependencies:
- dependency-name: x11rb
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot] 30b75c1086
Bump serde_yaml from 0.9.13 to 0.9.14 (#205)
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.13 to 0.9.14.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.13...0.9.14)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot] 5013dcc58d
Bump clap from 3.2.22 to 3.2.23 (#203)
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.22 to 3.2.23.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.23/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.22...v3.2.23)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Takashi Kokubun 13e6b552d0
Test what actually happens 2 years ago
Takashi Kokubun 04df386833
Test something more meaningful 2 years ago
Takashi Kokubun d02446a040
Split ActionDispatcher from EventHandler (#200)
* Introduce Event enum

* Rename KeyAction/Action to ModmapAction/KeymapAction

* Introduce Action enum and ActionDispatcher

* Convert OverrideTimeout to an event

* thread::sleep should also be an Action

* Command should also be an Action

* Make InputEvent an Action

* Start writing tests for EventHandler

* cargo fmt
2 years ago
Berwyn Hoyt 763b1b8746
Document feature that allows app-specific key overrides of a generic key map (#198)
* Document the feature that allows keys from a generic key map to be overridden for specific applications

* Remove mistaken extra lines in README

* Reduce duplication in example/config.yml by using the default/override key feature. It might be possible to further reduce the duplication in the IDEA config, but I cannot do so without knowing the author's intention
2 years ago
Takashi Kokubun af7688520f
Version 0.7.8 2 years ago
Roland Fredenhagen c2f8d5d468
fix: libinput dwt support (#196) 2 years ago
Takashi Kokubun ae1b425141
Version 0.7.7 2 years ago
Takashi Kokubun f3f9e53f5a
Flush pending keys with an override remap correctly
Close #154
2 years ago
Takashi Kokubun bfb8604add
Version 0.7.6 2 years ago
Kazuyoshi Kato dfe27fe71d
Add keypress_delay_ms to workaround #179 (#191)
Close #179
2 years ago
Takashi Kokubun 32011d6a5f
Merge pull request #186 from k0kubun/dependabot/cargo/clap-3.2.22
Bump clap from 3.2.21 to 3.2.22
2 years ago
Takashi Kokubun 4755135c1f
Merge pull request #184 from k0kubun/dependabot/cargo/env_logger-0.9.1
Bump env_logger from 0.9.0 to 0.9.1
2 years ago
Takashi Kokubun 06a06c3007
Merge pull request #182 from k0kubun/dependabot/cargo/serde-1.0.145
Bump serde from 1.0.144 to 1.0.145
2 years ago
dependabot[bot] 82e184b72d
Bump clap from 3.2.21 to 3.2.22
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.21 to 3.2.22.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.22/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.21...v3.2.22)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot] ac0a39d3dd
Bump env_logger from 0.9.0 to 0.9.1
Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases)
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.9.0...v0.9.1)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot] 0c41f930bb
Bump serde from 1.0.144 to 1.0.145
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.144 to 1.0.145.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Takashi Kokubun d58aa94616
Merge pull request #174 from k0kubun/dependabot/cargo/serde_yaml-0.9.13
Bump serde_yaml from 0.9.4 to 0.9.13
2 years ago
Takashi Kokubun a78ac3e296
Merge pull request #177 from dottorblaster/update-readme-uinput-uaccess
Add TAG+="uaccess" in the udev's rule
2 years ago
Alessio Biancalana 127bcee08d Add TAG+="uaccess" in the udev's rule 2 years ago
dependabot[bot] 51000e3807
Bump serde_yaml from 0.9.4 to 0.9.13
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.4 to 0.9.13.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.4...0.9.13)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Takashi Kokubun 26f62a7c2b
Merge pull request #173 from k0kubun/dependabot/cargo/anyhow-1.0.65
Bump anyhow from 1.0.63 to 1.0.65
2 years ago