Add greek keyboard layout and include kanata in hyprland
This commit is contained in:
@@ -62,7 +62,6 @@ in
|
|||||||
system.gpg.enable = true;
|
system.gpg.enable = true;
|
||||||
system.pass.enable = true;
|
system.pass.enable = true;
|
||||||
system.sshfs.enable = true;
|
system.sshfs.enable = true;
|
||||||
system.kanata.enable = true;
|
|
||||||
|
|
||||||
server.vatnajokull.enable = true;
|
server.vatnajokull.enable = true;
|
||||||
|
|
||||||
@@ -71,7 +70,10 @@ in
|
|||||||
inherit wallpaper;
|
inherit wallpaper;
|
||||||
enable = true;
|
enable = true;
|
||||||
laptop = true;
|
laptop = true;
|
||||||
hyprland.enable = true;
|
hyprland = {
|
||||||
|
enable = true;
|
||||||
|
kb_layout = "es,gr";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# - Editors and development ------------------
|
# - Editors and development ------------------
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ in {
|
|||||||
|
|
||||||
mod = my.mkOpt' types.str "Mod4" "Main modifier key for hyprland";
|
mod = my.mkOpt' types.str "Mod4" "Main modifier key for hyprland";
|
||||||
|
|
||||||
laptop = mkEnableOption "Enable features for a laptop (trackpad, battery, etc...)";
|
kb_layout = my.mkOpt' types.str "es" "Keyboard layout(s) for hyprland";
|
||||||
|
|
||||||
extraKeybindings = my.mkOpt (types.listOf types.str) [ ];
|
extraKeybindings = my.mkOpt (types.listOf types.str) [ ];
|
||||||
extraStartup = my.mkOpt (types.listOf types.attrs) [ ];
|
# extraStartup = my.mkOpt (types.listOf types.attrs) [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@@ -60,6 +60,7 @@ in {
|
|||||||
# - Dependencies -----------------------------
|
# - Dependencies -----------------------------
|
||||||
samfelag.modules.desktop.rofi.enable = true;
|
samfelag.modules.desktop.rofi.enable = true;
|
||||||
samfelag.modules.desktop.eww.enable = true;
|
samfelag.modules.desktop.eww.enable = true;
|
||||||
|
samfelag.modules.system.kanata.enable = true;
|
||||||
|
|
||||||
# - Configuration -----------------------------
|
# - Configuration -----------------------------
|
||||||
|
|
||||||
@@ -85,7 +86,7 @@ in {
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "es";
|
kb_layout = cfg.kb_layout;
|
||||||
};
|
};
|
||||||
|
|
||||||
monitor = ",highres,auto,1";
|
monitor = ",highres,auto,1";
|
||||||
@@ -163,6 +164,9 @@ in {
|
|||||||
", XF86AudioPrev, exec, playerctl previous"
|
", XF86AudioPrev, exec, playerctl previous"
|
||||||
", XF86AudioStop, exec, playerctl stop"
|
", XF86AudioStop, exec, playerctl stop"
|
||||||
|
|
||||||
|
# - Keyboard ---------------------------
|
||||||
|
"${cfg.mod} SHIFT, K, exec, hyprctl switchxkblayout kanata next"
|
||||||
|
|
||||||
] ++ cfg.extraKeybindings;
|
] ++ cfg.extraKeybindings;
|
||||||
|
|
||||||
binde = [
|
binde = [
|
||||||
|
|||||||
Reference in New Issue
Block a user