-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJustfile
25 lines (20 loc) · 1013 Bytes
/
Justfile
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
set quiet := true
update: transfer build
# transfer stuff from local device
transfer:
local_mode_name="4 finder-vim-mode.yaml" ; \
cp -v "$HOME/.config/karabiner/assets/complex_modifications/$local_mode_name" ./finder-vim.yaml
cp -v "$HOME/.config/karabiner/assets/finder-vim-mode/cheatsheet.json" ./extras
cp -v "$HOME/.config/karabiner/assets/finder-vim-mode/cheatsheet.png" ./extras
cp -v "$HOME/.config/karabiner/assets/finder-vim-mode/notificator" ./extras
# Build Karabiner modification, requires `yq`
build:
yq --output-format=json 'explode(.)' finder-vim.yaml > finder-vim.json && \
echo "✅ Compiled Karabiner modification JSON."
# Recreate the cheatsheet
# INFO the cheatsheet should be downloaded as JSON, but not as PNG, since the
# PNG is quite low quality. To get higher quality, it is better to make a
# screenshot instead.
cheatsheet:
open 'http://www.keyboard-layout-editor.com/'
open -R "$HOME/.config/karabiner/assets/finder-vim-mode-cheatsheet.json"