aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/dome-key.in.rb
blob: d6f6dc6d7400bd7d5c151ad6c39eef866987635c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class DomeKey < Formula
  desc ""
  homepage ""
  version "${VERSION}"
  url ""
  sha256 "${SHA256}"

  # Rust code requires at least 10.7
  depends_on :macos => :lion

  def install
    bin.install "dome-key"
    man1.install "dome-key.1"
  end

  def plist_name
    "com.teddywing.dome-key"
  end

  def caveats; <<~EOS
    To get started with a set of mappings, try running the these commands:

    mkdir -p $$HOME/.config/dome-key
    cat <<EOM > $$HOME/.config/dome-key/mappings.dkmap
    map <Play> <Nop>

    mode <Play><Play> {
        map <Up> <Left>
        map <Play> <Space>
        map <Down> <Right>
    }
    EOM
  EOS
  end

  def plist; <<~EOS
${PLIST}
  EOS
  end
end