summarylogtreecommitdiffstats
path: root/input-remapper-git.install
blob: ba2a0d5ad780f8dd7f04dfebe49c1aadfe6de2e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
  systemctl stop key-mapper || true
  systemctl disable key-mapper || true

  # systemctl enable input-remapper
  # systemctl start input-remapper
}

post_upgrade() {
  if [ -d "/run/systemd/system/" ] && systemctl is-active --quiet key-mapper
  then
    systemctl stop key-mapper || true
    systemctl disable key-mapper || true
    systemctl restart input-remapper
  fi
}

post_remove() {
  systemctl disable input-remapper || true
}