Skip to content

Commit

Permalink
Swap dotless i with i
Browse files Browse the repository at this point in the history
  • Loading branch information
RGBCube committed May 20, 2024
1 parent fcbfb96 commit 6d18066
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
14 changes: 13 additions & 1 deletion modules/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ in desktopSystemConfiguration {
})

(desktopUserHomeConfiguration {
xdg.configFile."xkb/symbols/tr-swapped-i".text = ''
default partial
xkb_symbols "basic" {
include "tr(basic)"
name[Group1]="Turkish (i and ı swapped)";
key <AC11> { type[group1] = "FOUR_LEVEL_SEMIALPHABETIC", [ idotless, Iabovedot, paragraph , none ]};
key <AD08> { type[group1] = "FOUR_LEVEL_SEMIALPHABETIC", [ i , I , apostrophe, dead_caron ]};
};
'';

wayland.windowManager.hyprland = enabled {
settings = {
monitor = [ ",preferred,auto,1" ];
Expand Down Expand Up @@ -160,7 +172,7 @@ in desktopSystemConfiguration {
input = {
follow_mouse = 1;

kb_layout = "tr";
kb_layout = "tr-swapped-i";

repeat_delay = 400;
repeat_rate = 100;
Expand Down
12 changes: 10 additions & 2 deletions modules/localisation.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
{ lib, ... }: with lib; merge
{ lib, pkgs, ... }: with lib; merge

(systemConfiguration {
console.keyMap = "trq";
console.keyMap = pkgs.writeText "trq-swapped-i.map" ''
include "${pkgs.kbd}/share/keymaps/i386/qwerty/trq.map"
keycode 23 = i
altgr keycode 23 = +icircumflex
altgr shift keycode 23 = +Icircumflex
keycode 40 = +dotlessi +Idotabove
'';

i18n.defaultLocale = "C.UTF-8";
})
Expand Down

0 comments on commit 6d18066

Please sign in to comment.