diff --git a/content/notes/misc/sxhkd-watcher.md b/content/notes/misc/sxhkd-watcher.md new file mode 100644 index 00000000..57d9a4db --- /dev/null +++ b/content/notes/misc/sxhkd-watcher.md @@ -0,0 +1,6 @@ +--- +title: "sxhkd Watcher" +date: 2023-04-01T00:46:00+08:00 +--- + +This note has been [moved]({{< ref "/posts/sxhkd-watcher" >}}). diff --git a/content/posts/sxkhd-watcher/index.md b/content/posts/sxhkd-watcher/index.md similarity index 89% rename from content/posts/sxkhd-watcher/index.md rename to content/posts/sxhkd-watcher/index.md index 3cd19f98..03fd6557 100644 --- a/content/posts/sxkhd-watcher/index.md +++ b/content/posts/sxhkd-watcher/index.md @@ -9,19 +9,18 @@ tags: - sxhkd --- -I use chord chains in [sxhkd](https://github.com/baskerville/sxhkd) to create -modal hotkeys, similar to those in Vim. This allows the same key combination to -be reused for different commands by prefixing it with a different chord, -effectively creating custom "modes". - -From the sxhkd manpage: +In [sxhkd](https://github.com/baskerville/sxhkd), multiple chords can be chained +to create modal hotkeys. From the sxhkd manpage: >When multiple chords are separated by semicolons, the hotkey is a chord chain: >the command will only be executed after receiving each chord of the chain in >consecutive order. +This allows a single key combination to be reused for different commands by +prefixing it with a different chord, resulting in "modes" like those in Vim. + For example, these are three hotkeys that use `super + h`, each prefixed with a -different `super + [key]`: +different `super + [key]` to represent various modes: ```bash # normal mode