Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/fork.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The other 1Password references:

| Setting | Where | What it does |
| --- | --- | --- |
| Keyboard and locale (Linux) | `modules/system/bootstrap.sh` | Sets the console keymap to `dvorak`, the X11 layout to `us` / `dvorak` with `caps:none`, and the locale to `en_US.UTF-8`. In a virtual machine both are plain `us`, because a hypervisor console sends US key positions |
| Keyboard and locale (Linux) | `modules/system/bootstrap.sh`, `modules/omarchy/hypr/keyboard.lua` | Sets the console keymap to `dvorak`, the X11 layout to `us` / `dvorak` with `caps:none`, and the locale to `en_US.UTF-8`. In a virtual machine both are plain `us`, because a hypervisor console sends US key positions. `keyboard.lua` sets the Hyprland session to `us` / `dvorak` on every machine |
| Passwordless sudo (Linux) | `modules/system/bootstrap.sh` | Installs `/etc/sudoers.d/techdufus`, granting the account that runs bootstrap `NOPASSWD: ALL` |
| Login shell | `[bootstrap.user]` in `modules/zsh/mise.linux.toml` and `mise.macos.toml` | Changes it to zsh |
| CapsLock | `modules/omarchy/hypr/keyboard.lua` and `summon.lua`; `modules/hammerspoon/karabiner/karabiner.json` | CapsLock stops being CapsLock and becomes the app leader |
Expand Down
6 changes: 5 additions & 1 deletion modules/omarchy/hypr/keyboard.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
-- Managed by ~/.dotfiles modules/omarchy (CapsLock is the summon leader; Compose moves to Right Alt).
-- Layout/variant come from /etc/vconsole.conf via Omarchy's default input.lua (modules/system localectl).
-- The session is Dvorak on every machine. Omarchy's default input.lua would take the layout from
-- /etc/vconsole.conf, which modules/system sets to US on a virtual machine for its hypervisor
-- console and disk-unlock prompt. Moonlight and real keyboards send key positions, so they need this.
hl.config({
input = {
kb_layout = "us",
kb_variant = "dvorak",
kb_options = "caps:none,compose:ralt,shift:both_capslock_cancel",
},
})
5 changes: 3 additions & 2 deletions modules/system/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ fi
field() { printf '%s\n' "$status" | sed -n "s/^[[:space:]]*$1:[[:space:]]*//p" | head -n 1; }

# A virtual machine is typed on through its hypervisor console, which sends each
# character as its US QWERTY key (QEMU -k en-us), so the guest must read US QWERTY
# or every key is remapped twice. gliff and SSH carry the client's own layout.
# character as its US QWERTY key (QEMU -k en-us), so the console and the disk-unlock
# prompt must read US QWERTY or every key is remapped twice. The Hyprland session
# sets its own layout (modules/omarchy/hypr/keyboard.lua).
keymap=dvorak variant=dvorak
if systemd-detect-virt --quiet --vm; then
keymap=us variant=
Expand Down
Loading