From 094cb7903b296c440706e80e13ea6452e571e801 Mon Sep 17 00:00:00 2001 From: kencx Date: Wed, 21 Feb 2024 10:45:51 +0800 Subject: [PATCH] Add redirect page to sxhkd watcher --- content/notes/misc/sxhkd-watcher.md | 6 ++++++ .../posts/{sxkhd-watcher => sxhkd-watcher}/index.md | 13 ++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 content/notes/misc/sxhkd-watcher.md rename content/posts/{sxkhd-watcher => sxhkd-watcher}/index.md (89%) 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