From 3fcbdbf5f6772d819d45ba0f37ca76911ad5593f Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 21 Apr 2023 19:56:07 +0100 Subject: [PATCH] Show French keyboard layout --- roles/home-cli/files/azerty-afnor.txt | 13 +++++++++++++ roles/home-cli/files/profile | 6 ++++++ roles/home-cli/tasks/dotfiles.yml | 4 ++++ 3 files changed, 23 insertions(+) create mode 100644 roles/home-cli/files/azerty-afnor.txt diff --git a/roles/home-cli/files/azerty-afnor.txt b/roles/home-cli/files/azerty-afnor.txt new file mode 100644 index 0000000..b0338fc --- /dev/null +++ b/roles/home-cli/files/azerty-afnor.txt @@ -0,0 +1,13 @@ +┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────────┐ +│ # ̯ │ 1À │ 2É │ 3È │ 4Ê │ 5˝ │ 6˵ │ 7 │ 8— │ 9 │ 0 │ "° │ ¨ │ │ +│ @˘ │ ৠ│ é´ │ è` │ ê& │ ([ │ )] │ ‘¯ │ ’_ │ «“ │ »” │ '° │ ^ˇ │ │ +├────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬────────┤ +│ │ AÆ │ Z │ E │ R │ T™ │ Y │ UÙ │ I˙ │ OŒ │ P‰ │ –‑ │ ±‡ │ │ +│ │ aæ │ z£ │ e€ │ r® │ t{ │ y} │ uù │ i. │ oœ │ p% │ -− │ +† │ │ +├──────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┐ │ +│ │ Q │ Sẞ │ D │ F │ G │ Hˍ │ J │ K │ L │ M │ \√ │ ½¼ │ │ +│ │ qθ │ sß │ d$ │ f¤ │ gμ │ h │ j │ k │ l| │ m∞ │ /÷ │ *× │ │ +├─────┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴────┴──────┤ +│ │ >≥ │ WƷ │ X │ CÇ │ V˛ │ B │ N │ ? │ !, │ … │ =≠ │ │ +│ │ <≤ │ wʒ │ x© │ cç │ v¸ │ b ̵ │ n~ │ .¿ │ ,¡ │ :· │ ;≃ │ │ +└─────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴──────────────┘ diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 429d874..f82bf59 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -304,6 +304,12 @@ then fi fi +# Print AZERTY keyboard if using the French locale. +if [ "$LANG" -eq "fr_FR.UTF-8" ] && [ -r "$XDG_DATA_HOME/azerty-afnor.txt" ] +then + cat "$XDG_DATA_HOME/azerty-afnor.txt" +fi + # Make a directory and immediately change to it. mkcd () { if [ $# -ne 1 ] diff --git a/roles/home-cli/tasks/dotfiles.yml b/roles/home-cli/tasks/dotfiles.yml index 261568a..527d363 100644 --- a/roles/home-cli/tasks/dotfiles.yml +++ b/roles/home-cli/tasks/dotfiles.yml @@ -84,3 +84,7 @@ ansible.builtin.copy: src: storage.conf dest: "{{ ansible_env.XDG_CONFIG_HOME }}/containers/storage.conf" +- name: Create $XDG_DATA_HOME/azerty-afnor.txt + ansible.builtin.copy: + src: azerty-afnor.txt + dest: "{{ ansible_env.XDG_DATA_HOME }}/azerty-afnor.txt"