diff --git a/modules/nixos/graphical/default.nix b/modules/nixos/graphical/default.nix index 67f2cf3..018dd77 100644 --- a/modules/nixos/graphical/default.nix +++ b/modules/nixos/graphical/default.nix @@ -32,6 +32,10 @@ type = lib.types.str; description = "Command to use for adjusting brightness"; }; + calculatorCommand = lib.mkOption { + type = lib.types.str; + description = "Command to use for quick calculations"; + }; toggleBarCommand = lib.mkOption { type = lib.types.str; description = "Command to hide and show the status bar."; diff --git a/modules/nixos/graphical/i3.nix b/modules/nixos/graphical/i3.nix index 9956adf..d4b73ed 100644 --- a/modules/nixos/graphical/i3.nix +++ b/modules/nixos/graphical/i3.nix @@ -123,6 +123,8 @@ in { "exec --no-startup-id ${config.powerCommand}"; "${modifier}+Shift+m" = "exec --no-startup-id ${config.brightnessCommand}"; + "${modifier}+c" = + "exec --no-startup-id ${config.calculatorCommand}"; "${modifier}+Shift+c" = "reload"; "${modifier}+Shift+r" = "restart"; "${modifier}+Shift+q" = ''