Skip to content

Commit dabf338

Browse files
committed
Configure Amethyst
1 parent 043133d commit dabf338

4 files changed

Lines changed: 162 additions & 2 deletions

File tree

macos/build/04-00-amethyst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
source "$DOT_HOME/lib/macos/include.sh"
6+
7+
if ! command -v open >/dev/null || [[ ! -d "/Applications/Amethyst.app" ]]; then
8+
log_warning "Amethyst not installed, skipping configuration deployment"
9+
log_info "Run 'dot install amethyst' to install Amethyst first"
10+
exit 0
11+
fi
12+
13+
log_step "Deploying Amethyst configuration"
14+
SOURCE_CONFIG="$SYSTEM_DIR/config/amethyst/.amethyst.yml"
15+
DEST_CONFIG="$HOME/.amethyst.yml"
16+
17+
if [[ ! -f "$SOURCE_CONFIG" ]]; then
18+
log_error "Config file not found: $SOURCE_CONFIG"
19+
exit 1
20+
fi
21+
22+
cp "$SOURCE_CONFIG" "$DEST_CONFIG"
23+
log_success "Amethyst configuration deployed to $DEST_CONFIG"
24+
log_info "Restart Amethyst for changes to take effect"
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# Amethyst Configuration
2+
3+
# Modifier keys (mod1 and mod2 can be customized)
4+
mod1:
5+
- option
6+
- control
7+
- command
8+
9+
mod2:
10+
- option
11+
- control
12+
- command
13+
- shift
14+
15+
# Layouts
16+
layouts:
17+
- tall
18+
- fullscreen
19+
- 3column-left
20+
- floating
21+
22+
# Window settings
23+
window-margins: true
24+
window-margin-size: 8
25+
window-resize-step: 5
26+
27+
# Focus behavior
28+
mouse-follows-focus: false
29+
focus-follows-mouse: false
30+
31+
# Floating applications (bundle identifiers)
32+
floating:
33+
- com.apple.systempreferences
34+
- com.apple.ActivityMonitor
35+
36+
# Keyboard shortcuts
37+
cycle-layout:
38+
mod: mod1
39+
key: t
40+
41+
shrink-main:
42+
mod: mod1
43+
key: '='
44+
45+
expand-main:
46+
mod: mod1
47+
key: '-'
48+
49+
increase-main:
50+
mod: mod1
51+
key: '.'
52+
53+
decrease-main:
54+
mod: mod1
55+
key: ','
56+
57+
focus-ccw:
58+
mod: mod1
59+
key: i
60+
61+
focus-cw:
62+
mod: mod1
63+
key: o
64+
65+
swap-cw:
66+
mod: mod1
67+
key: n
68+
69+
swap-main:
70+
mod: mod1
71+
key: enter
72+
73+
focus-screen-1:
74+
mod: mod1
75+
key: m
76+
77+
focus-screen-2:
78+
mod: mod1
79+
key: l
80+
81+
select-fullscreen-layout:
82+
mod: mod1
83+
key: f
84+
85+
select-wide-layout:
86+
mod: mod2
87+
key: s
88+
89+
throw-space-1:
90+
mod: mod2
91+
key: '1'
92+
93+
throw-space-2:
94+
mod: mod2
95+
key: '2'
96+
97+
throw-space-3:
98+
mod: mod2
99+
key: '3'
100+
101+
throw-space-4:
102+
mod: mod2
103+
key: '4'
104+
105+
throw-space-5:
106+
mod: mod2
107+
key: '5'
108+
109+
throw-space-6:
110+
mod: mod2
111+
key: '6'
112+
113+
throw-space-7:
114+
mod: mod2
115+
key: '7'
116+
117+
throw-space-8:
118+
mod: mod2
119+
key: '8'

macos/config/kanata/iso-us-international.kbd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
lsb (tap-hold 170 170 [ lsft)
2323
rsb (tap-hold 170 170 ] rsft)
2424
sid (tap-hold 300 300 spc (layer-toggle side))
25+
1cm (tap-hold 300 300 1 lmet)
2526

2627
;; Browser history navigation
2728
hfo (multi lalt rght)
@@ -44,11 +45,11 @@
4445

4546
(deflayer main
4647
esc mute vold volu end ins del
47-
= 1 2 3 4 5 6 7 8 9 0 - grv bspc
48+
= @1cm 2 3 4 5 6 7 8 9 0 - grv bspc
4849
@mta q w e r t y u i o p @hyp \
4950
@ces @laa s d f g h j k l @lac @qta ret ret
5051
lsft lsft z x c v b n m , . / @rsb
51-
caps _ lalt @sid ralt rctl pgup up pgdn
52+
caps lalt lmet @sid ralt rctl pgup up pgdn
5253
left down rght
5354
)
5455

macos/install/04-10-amethyst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
source "$DOT_HOME/lib/macos/include.sh"
6+
7+
log_step "Installing Amethyst via Homebrew"
8+
CASKS=("amethyst")
9+
install_cask "${CASKS[@]}"
10+
11+
log_success "Amethyst installation completed"
12+
log_info "Run 'dot build amethyst' to configure Amethyst"
13+
log_info ""
14+
log_warning "IMPORTANT: Grant Accessibility permissions to Amethyst"
15+
log_info "Go to: System Settings > Privacy & Security > Accessibility"
16+
log_info "Enable Amethyst to allow window management"

0 commit comments

Comments
 (0)