aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_XCompose
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:23 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:23 +0100
commit4fd83f83163754c5b647c4408b5ee70c0a804afb (patch)
treecc989923f787d1765a5d1a86f9ad766c743f8961 /dot_XCompose
parent2a92f0656d09fc50661a7a8d63512287570ec6af (diff)
downloaddotfiles-4fd83f83163754c5b647c4408b5ee70c0a804afb.tar.gz
dotfiles-4fd83f83163754c5b647c4408b5ee70c0a804afb.tar.bz2
dotfiles-4fd83f83163754c5b647c4408b5ee70c0a804afb.zip
feat(sway): altgr-intl + compose key for PT typing
- xkb variant altgr-intl: AltGr dead keys + direct Euro on AltGr+5. Preserves bare ' " ` ~ ^ for code/shell. - Compose on Right Ctrl (compose:rctrl). Leaves Right Alt for AltGr. - New dot_XCompose with %L include + PT-PT guillemets, Euro, ordinals, em/en dashes, ellipsis. - KEYBINDS.md: new Typing / Input section with AltGr + Compose cheatsheet.
Diffstat (limited to 'dot_XCompose')
-rw-r--r--dot_XCompose22
1 files changed, 22 insertions, 0 deletions
diff --git a/dot_XCompose b/dot_XCompose
new file mode 100644
index 0000000..5b940ab
--- /dev/null
+++ b/dot_XCompose
@@ -0,0 +1,22 @@
+# ~/.XCompose — custom Compose sequences layered on top of system defaults.
+# Compose key is Right Ctrl (sway: xkb_options compose:rctrl).
+# Loaded automatically by libxkbcommon clients (sway/ghostty/foot/firefox/thunderbird).
+
+include "%L" # pull in the full system Compose table (á, ã, ç, €, etc.)
+
+# ── PT-PT quotation marks ─────────────────────────────────────────────────────
+<Multi_key> <less> <less> : "«" guillemotleft
+<Multi_key> <greater> <greater> : "»" guillemotright
+
+# ── Euro (also directly on AltGr+5, this is the discoverable fallback) ────────
+<Multi_key> <e> <equal> : "€" EuroSign
+<Multi_key> <equal> <e> : "€" EuroSign
+
+# ── Ordinal indicators (PT dates, addresses: 1.º, 2.ª) ────────────────────────
+<Multi_key> <o> <underscore> : "º" masculine
+<Multi_key> <a> <underscore> : "ª" feminine
+
+# ── Dashes and ellipsis (handy in prose) ──────────────────────────────────────
+<Multi_key> <minus> <minus> <minus> : "—" emdash
+<Multi_key> <minus> <minus> <period> : "–" endash
+<Multi_key> <period> <period> <period>: "…" ellipsis