# install.sh · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/blob/refs%2Fheads%2Fcodex%2Fspend-heatmap-layout/install.sh)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: refs/heads/codex/spend-heatmap-layout

Commit: 4d7d06b761a73fb03bb9cf91070e2c22c75aaa7b

Blob: d371da242b3c5fb408807d4509d03fd6622089b0

Size: 554 bytes

[Immutable source](https://git.cafe/lucenx/codexbar-plasma/blob/4d7d06b761a73fb03bb9cf91070e2c22c75aaa7b/install.sh?format=markdown)

```
#!/usr/bin/env bash
set -euo pipefail

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PACKAGE_PATH="${ROOT_DIR}/dist/codexbar-plasma.plasmoid"

command -v kpackagetool6 >/dev/null 2>&1 || {
  echo "missing required command: kpackagetool6" >&2
  exit 127
}
command -v systemctl >/dev/null 2>&1 || {
  echo "missing required command: systemctl" >&2
  exit 127
}

make -C "$ROOT_DIR" package
kpackagetool6 -t Plasma/Applet -u "$PACKAGE_PATH" || kpackagetool6 -t Plasma/Applet -i "$PACKAGE_PATH"
systemctl --user restart plasma-plasmashell.service

```
