Pi66

pind
Simple Rust hotkey daemon.
git clone https://git.pi66.xyz/pind

Makefile

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: build install

BUILD_DIR   = target/release
INSTALL_DIR = /usr/local/bin
CONFIG_DIR  = ~/.config/pind 

build:
    cargo build --release

install: build
    sudo cp <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mrow><mo stretchy="false">&#x00028;</mo><mi>B</mi><mi>U</mi><mi>I</mi><mi>L</mi><msub><mi>D</mi><mi>D</mi></msub><mi>I</mi><mi>R</mi><mo stretchy="false">&#x00029;</mo><mo>&#x0002F;</mo><mi>p</mi><mi>i</mi><mi>n</mi><mi>d</mi><mi>d</mi></mrow></math>(INSTALL_DIR)/
    sudo cp ./pindc $(INSTALL_DIR)/
    sudo chmod 755 $(INSTALL_DIR)/pindc
    sudo chmod 755 $(INSTALL_DIR)/pindd
    mkdir -p $(CONFIG_DIR)
    cp -n pindrc $(CONFIG_DIR)

uninstall:
    sudo rm /usr/local/bin/pindd
    sudo rm /usr/local/bin/pindc
    sudo rm -r $(CONFIG_DIR)