Skip to content

Commit

Permalink
Add redirect page to sxhkd watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kencx committed Feb 21, 2024
1 parent 0371620 commit 094cb79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions content/notes/misc/sxhkd-watcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "sxhkd Watcher"
date: 2023-04-01T00:46:00+08:00
---

This note has been [moved]({{< ref "/posts/sxhkd-watcher" >}}).
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 094cb79

Please sign in to comment.