-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (38 loc) · 1.66 KB
/
Makefile
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
41
42
43
44
45
STACK := stack --no-nix
all: build
just-build:
$(STACK) build --install-ghc --ghc-options=-fllvm -j'$(shell nproc --all)'
build: just-build
$(STACK) install
dist: clean build
clean:
$(STACK) clean --full
rm -rf dist/ .stack-work/ .hpc/
test-command:
sudo setfacl -m 'u:$(shell whoami):r' /dev/input/by-id/*
$(STACK) build --install-ghc --ghc-options=-fllvm -j'$(shell nproc --all)'
env PATH='$(shell $(STACK) path --local-install-root)/bin/:${PATH}' \
xlib-keys-hack \
\
'/dev/input/by-id/usb-Corsair_Corsair_Gaming_K63_Keyboard_0B008012AF0C1D2558ED9875F5001945-event-if01' \
'/dev/input/by-id/usb-Corsair_Corsair_Gaming_K63_Keyboard_0B008012AF0C1D2558ED9875F5001945-event-kbd' \
'/dev/input/by-id/usb-Corsair_Corsair_Gaming_K63_Keyboard_0B008012AF0C1D2558ED9875F5001945-if01-event-kbd' \
--disable-xinput-device-name='Corsair Corsair Gaming K63 Keyboard' \
--disable-xinput-device-name='Corsair Corsair Gaming K63 Keyboard Keyboard' \
\
/dev/input/by-id/usb-1d57_2.4G_Receiver-event-kbd \
/dev/input/by-id/usb-1d57_2.4G_Receiver-event-if02 \
--disable-xinput-device-name='2.4G Receiver' \
\
/dev/input/by-id/usb-Apple_Inc._Apple_Keyboard-event-kbd \
/dev/input/by-id/usb-Apple_Inc._Apple_Keyboard-event-if01 \
--disable-xinput-device-name='Apple Inc. Apple Keyboard' \
\
-v --shift-numeric-keys --shift-hjkl \
--right-super-double-press-cmd='place-cursor-at' \
--xmobar-indicators --software-debouncer=25 \
--hold-alt-for-alternative-mode --ergonomic-mode
test-usage-command:
$(STACK) build --install-ghc --ghc-options=-fllvm -j'$(shell nproc --all)'
env PATH='$(shell $(STACK) path --local-install-root)/bin/:${PATH}' \
xlib-keys-hack --help