Add greek keyboard layout and include kanata in hyprland
This commit is contained in:
@@ -10,10 +10,10 @@ in {
|
||||
|
||||
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) [ ];
|
||||
extraStartup = my.mkOpt (types.listOf types.attrs) [ ];
|
||||
# extraStartup = my.mkOpt (types.listOf types.attrs) [ ];
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@@ -60,6 +60,7 @@ in {
|
||||
# - Dependencies -----------------------------
|
||||
samfelag.modules.desktop.rofi.enable = true;
|
||||
samfelag.modules.desktop.eww.enable = true;
|
||||
samfelag.modules.system.kanata.enable = true;
|
||||
|
||||
# - Configuration -----------------------------
|
||||
|
||||
@@ -85,7 +86,7 @@ in {
|
||||
|
||||
settings = {
|
||||
input = {
|
||||
kb_layout = "es";
|
||||
kb_layout = cfg.kb_layout;
|
||||
};
|
||||
|
||||
monitor = ",highres,auto,1";
|
||||
@@ -163,6 +164,9 @@ in {
|
||||
", XF86AudioPrev, exec, playerctl previous"
|
||||
", XF86AudioStop, exec, playerctl stop"
|
||||
|
||||
# - Keyboard ---------------------------
|
||||
"${cfg.mod} SHIFT, K, exec, hyprctl switchxkblayout kanata next"
|
||||
|
||||
] ++ cfg.extraKeybindings;
|
||||
|
||||
binde = [
|
||||
|
||||
Reference in New Issue
Block a user